jquerymobile按钮事例
<!DOCTYPE html>
<html>
<head>
<title>button</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"
/>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
</head>
<body>
<div data-role="page" id="homepage" data-position="fixed">
<div data-role="header">
<h1>button按钮</h1>
</div>
<div data-role="content">
<a data-role="button" data-icon="home" data-theme="a" href="#">首页</a>
<a data-role="button" data-icon="arrow-l" data-theme="a" href="#">左箭头</a>
<a data-role="button" data-icon="arrow-r" data-theme="a" href="#">右箭头</a>
<a data-role="button" data-icon="arrow-u" data-theme="a" href="#">上箭头</a>
<a data-role="button" data-icon="arrow-d" data-theme="a" href="#">下箭头</a>
<a data-role="button" data-icon="delete" data-theme="a" href="#">删除</a>
<a data-role="button" data-icon="plus" data-theme="a" href="#">加号</a>
<a data-role="button" data-icon="minus" data-theme="a" href="#">减号</a>
<a data-role="button" data-icon="check" data-theme="a" href="#">对号</a>
<a data-role="button" data-icon="gear" data-theme="a" href="#">齿轮</a>
<a data-role="button" data-icon="refresh" data-theme="a" href="#">刷新</a>
<a data-role="button" data-icon="forward" data-theme="a" href="#">前进</a>
<a data-role="button" data-icon="back" data-theme="a" href="#">返回</a>
<a data-role="button" data-icon="grid" data-theme="a" href="#">网格</a>
<a data-role="button" data-icon="star" data-theme="a" href="#">星星</a>
<a data-role="button" data-icon="alert" data-theme="a" href="#">提示</a>
<a data-role="button" data-icon="info" data-theme="a" href="#">信息</a>
<a data-role="button" data-icon="search" data-theme="a" href="#">查找</a>
</div>
<div data-role="footer" data-position="fixed">
<h4>jQuery Mobile按钮事例</h4>
</div>
</div>
</body>
</html>
效果:
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。