html5+css3写块级按钮

| 阅读数:--次| 作者:小猪仔
摘要:html5+css3写块级按钮

相关:在线浏览器html5评分测试

html5代码
运行代码
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>web开发【www.webkfa.com】</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="http://statics.webkfa.com/mui/mui.min.css">
		<script src="http://statics.webkfa.com/mui/mui.min.js"></script>
		<script src="http://statics.webkfa.com/mui/app.js"></script>
		<style>
			html,
			body {
				background-color: #efeff4;
			}
		</style>
		<script>
			mui.init();
		</script>
	</head>

	<body>

<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">块级按钮</h1>
</header>
<div class="mui-content">
    <div class="mui-content-padded">
        <button class="mui-btn mui-btn-block">Block button</button>
        <button class="mui-btn mui-btn-primary mui-btn-block">Block button</button>
        <button class="mui-btn mui-btn-success mui-btn-block">Block button</button>
        <button class="mui-btn mui-btn-warning mui-btn-block">Block button</button>
        <button class="mui-btn mui-btn-danger mui-btn-block">Block button</button>
		<button class="mui-btn mui-btn-royal mui-btn-block">Block button</button>
        <button class="mui-btn mui-btn-block mui-btn-outlined">Block button</button>
        <button class="mui-btn mui-btn-primary mui-btn-block mui-btn-outlined">Block button</button>
        <button class="mui-btn mui-btn-success mui-btn-block mui-btn-outlined">Block button</button>
        <button class="mui-btn mui-btn-warning mui-btn-block mui-btn-outlined">Block button</button>
        <button class="mui-btn mui-btn-danger mui-btn-block mui-btn-outlined">Block button</button>
        <button class="mui-btn mui-btn-royal mui-btn-block mui-btn-outlined">Block button</button>
    </div>
</div>
<style type="text/css">
  .mui-content-padded{
  	margin: 10px;
  }
</style>
</body>
</html>

返回顶部
学到老代码浏览 关闭浏览