首页 > HTML5/CSS3

html5+css3写带图标按钮

发表于2014-08-31 13:26:22| --次阅读| 来源webkfa| 作者小猪仔

摘要: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>

<style>
    .mui-btn{
        margin-top: 10px;
        margin-left: 10px;
    }
</style>
<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">
    		<h5>图标居左:</h5>
        <button class="mui-btn mui-icon mui-icon-home">
            首页
        </button>
        <button class="mui-btn mui-btn-primary mui-icon mui-icon-search">
            搜索
        </button>
        <button class="mui-btn mui-btn-success mui-icon mui-icon-plus">添加</button>
        <button class="mui-btn mui-btn-danger mui-btn-outlined">
            <span class="mui-icon mui-icon-trash"></span>
            删除	
        </button>
        <button class="mui-btn mui-btn-outlined">
            <span class="mui-icon mui-icon-calendar"></span>
            日程
        </button>
        <button class="mui-btn mui-btn-link">
            <span class="mui-icon mui-icon-left-nav"></span>
            返回
        </button>
        <h5>图标居右:</h5>
        <button class="mui-btn mui-icon mui-icon-home mui-right">
            首页
        </button>
        <button class="mui-btn mui-btn-primary mui-icon mui-icon-search mui-right">
            搜索
        </button>
        <button class="mui-btn mui-btn-success mui-icon mui-icon-plus mui-right">添加</button>
        <button class="mui-btn mui-btn-danger mui-btn-outlined">
            删除	
            <span class="mui-icon mui-icon-trash"></span>
        </button>
        <button class="mui-btn mui-btn-outlined">
            
            日程
            <span class="mui-icon mui-icon-calendar"></span>
        </button>
        <button class="mui-btn mui-btn-link">
            下一步
            <span class="mui-icon mui-icon-right"></span>
        </button>
    </div>
</div>
</body>
</html>

相关文章

猜你喜欢

学到老在线代码浏览器 关闭浏览
友情链接: hao123 360导航 搜狗网址导航 114啦网址导航 博客大全
Copyright © 1999-2014, WEBKFA.COM, All Rights Reserved  京ICP备14034497号-1