码迷,mamicode.com
首页 > Web开发 > 详细

jquerymobile按钮事例

时间:2015-01-02 09:42:29      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:jquerymobile按钮事例   mobile自定义开发   mobile按钮开发   html5开发   

<!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>

效果:

技术分享

 

 

jquerymobile按钮事例

标签:jquerymobile按钮事例   mobile自定义开发   mobile按钮开发   html5开发   

原文地址:http://blog.csdn.net/y_f123/article/details/42339529

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!