国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > web前端 > htmlcss > jquerymobile按钮事例

jquerymobile按钮事例

来源:程序员人生   发布时间:2015-01-04 09:39:32 阅读次数:2714次

<!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⑴.5.min.js"></script>
        <link rel="stylesheet" href="
http://code.jquery.com/mobile/1.0a3/jquery.mobile⑴.0a3.min.css" />
        <script type="text/javascript" src="
http://code.jquery.com/mobile/1.0a3/jquery.mobile⑴.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>

效果:

 

 

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生