jquerymobile创建9宫格事例

<html>
<head>
    <title>9宫格</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">
    <div data-role="header" data-position="fixed">
        <a href="#" data-role="button" data-theme="a" data-icon="back">返回</a>
        <h1>9宫格</h1>
        <a href="#" data-role="button" data-theme="a" data-icon="forward">前进</a>
    </div>
    <div data-role="content">
       <div class="ui-grid-b">
           <div class="ui-block-a">
               <a href="#" data-role="button" data-theme="a" data-icon="home" data-iconpos="top">首页</a>
           </div>
           <div class="ui-block-b">
               <a href="#" data-role="button" data-theme="a" data-icon="grid" data-iconpos="top">列表</a>
           </div>
           <div class="ui-block-c">
               <a href="#" data-role="button" data-theme="a" data-icon="star" data-iconpos="top">加星</a>
           </div>
           <div class="ui-block-a">
               <a href="#" data-role="button" data-theme="a" data-icon="info" data-iconpos="top">信息</a>
           </div>
           <div class="ui-block-b">
               <a href="#" data-role="button" data-theme="a" data-icon="search" data-iconpos="top">查找</a>
           </div>
           <div class="ui-block-c">
               <a href="#" data-role="button" data-theme="a" data-icon="gear" data-iconpos="top">设置</a>
           </div>
           <div class="ui-block-a">
               <a href="#" data-role="button" data-theme="a" data-icon="check" data-iconpos="top">已选</a>
           </div>
           <div class="ui-block-b">
               <a href="#" data-role="button" data-theme="a" data-icon="alert" data-iconpos="top">提示</a>
           </div>
           <div class="ui-block-c">
               <a href="#" data-role="button" data-theme="a" data-icon="plus" data-iconpos="top">添加</a>
           </div>
       </div>
    </div>    
  </div>
</body>
</html>

效果:

 

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值