AmazeUI 按钮
程序员文章站
2022-04-27 14:58:36
...
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>按钮</title>
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/i/aaa@qq.com">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<link rel="apple-touch-icon-precomposed" href="assets/i/aaa@qq.com">
<meta name="msapplication-TileImage" content="assets/i/aaa@qq.com">
<meta name="msapplication-TileColor" content="#0e90d2">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
</head>
<body style="margin: 20px;">
<!--
默认样式
.am-btn-default - 默认,灰色按钮
.am-btn-primary - 蓝色按钮
.am-btn-secondary - 浅蓝色按钮
.am-btn-success - 绿色按钮
.am-btn-warning - 橙色按钮
.am-btn-danger - 红色按钮
.am-btn-link
-->
<button type="button" class="am-btn am-btn-default">默认样式</button>
<button type="button" class="am-btn am-btn-primary">主色按钮</button>
<button type="button" class="am-btn am-btn-secondary">次色按钮</button>
<button type="button" class="am-btn am-btn-success">绿色按钮</button>
<button type="button" class="am-btn am-btn-warning">橙色按钮</button>
<button type="button" class="am-btn am-btn-danger">红色按钮</button>
<a class="am-btn am-btn-link">链接</a>
<a class="am-btn am-btn-danger" href="http://www.bing.com" target="_blank">应用按钮样式的链接</a>
<!--圆角按钮-->
<button type="button" class="am-btn am-btn-default am-radius">默认样式</button>
<!--椭圆形按钮-->
<button type="button" class="am-btn am-btn-default am-round">默认样式</button>
<!--**状态-->
<br><br>
<button type="button" class="am-btn am-btn-primary am-active">**状态</button>
<button type="button" class="am-btn am-btn-default am-active">**状态</button>
<br><br>
<a href="#" class="am-btn am-btn-primary am-active" role="button">链接按钮**状态</a>
<a href="#" class="am-btn am-btn-default am-active" role="button">链接按钮**状态</a>
<!--禁用状态-->
<br><br>
<button type="button" class="am-btn am-btn-primary" disabled="disabled">禁用状态</button>
<button type="button" class="am-btn am-btn-default" disabled="disabled">禁用状态</button>
<br><br>
<a href="#" class="am-btn am-btn-primary am-disabled">链接按钮禁用状态</a>
<a href="#" class="am-btn am-btn-default am-disabled">链接按钮禁用状态</a>
<!--按钮尺寸-->
<br><br>
<button class="am-btn am-btn-default am-btn-xl">按钮 - xl</button>
<button class="am-btn am-btn-default am-btn-lg">按钮 - lg</button>
<button class="am-btn am-btn-default">按钮默认大小</button>
<button class="am-btn am-btn-default am-btn-sm">按钮 - sm</button>
<button class="am-btn am-btn-default am-btn-xs">按钮 - xs</button>
<br><br>
<button class="am-btn am-btn-primary am-btn-xl">按钮 - xl</button>
<button class="am-btn am-btn-primary am-btn-lg">按钮 - lg</button>
<button class="am-btn am-btn-primary">按钮默认大小</button>
<button class="am-btn am-btn-primary am-btn-sm">按钮 - sm</button>
<button class="am-btn am-btn-primary am-btn-xs">按钮 - xs</button>
<!--块级显示-->
<br><br>
<button type="button" class="am-btn am-btn-primary am-btn-block">块级显示的按钮</button>
<button type="button" class="am-btn am-btn-default am-btn-block">块级显示的按钮</button>
<!--按钮 Icon-->
<br>
<button class="am-btn am-btn-default">
<i class="am-icon-cog"></i>
设置
</button>
<a class="am-btn am-btn-warning" href="#">
<i class="am-icon-shopping-cart"></i>
结账
</a>
<button class="am-btn am-btn-default">
<i class="am-icon-spinner am-icon-spin"></i>
加载中
</button>
<button class="am-btn am-btn-primary">
下载片片
<i class="am-icon-cloud-download"></i>
</button>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="assets/ie8/jquery.min.js"></script>
<script src="assets/ie8/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
</body>
</html>
效果图:
上一篇: 随机变量的概率分布学习笔记