网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

jQuery Mobile教程: 网格

时间:2024-10-15 02:08:51

1、两列布局<div data-role="content"> <p>两列布局:</p> <div class="ui-grid-a"> <div class="ui-block-a"><a href="#" data-role="button">第一列按钮</a><br> <span>第一列:This is some text. This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-b"> <a href="#" data-role="button">第二列按钮</a><br> <span>第二列:This is some text. This is some text. This is some text. This is some text.</span> </div> </div> </div>

jQuery Mobile教程: 网格

2、三列布局<div data-role="content"> <p>三列布局:</p> <div class="ui-grid-b"> <div class="ui-block-a"><a href="#" data-role="button">第一列按钮</a><br> <span>第一列:This is some text. This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-b"> <a href="#" data-role="button">第二列按钮</a><br> <span>第二列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-c"> <a href="#" data-role="button">第三列按钮</a><br> <span>第三列:This is some text. This is some text. This is some text. This is some text.</span> </div> </div> </div>

jQuery Mobile教程: 网格

3、四列布局<div data-role="content"> <p>四列布局:</p> <div class="ui-grid-c"> <div class="ui-block-a"><a href="#" data-role="button">第一列</a><br> <span>第一列:This is some text. This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-b"> <a href="#" data-role="button">第二列</a><br> <span>第二列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-c"> <a href="#" data-role="button">第三列</a><br> <span>第三列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-d"> <a href="#" data-role="button">第四列</a><br> <span>第四列:This is some text. This is some text. This is some text. This is some text.</span> </div> </div> </div>

jQuery Mobile教程: 网格

4、五列布局<div data-role="content"> <p>五列布局:&造婷用痃lt;/p> <div class="ui-grid-d"> <div class="ui-block-a"><a href="#" data-role="button">第一列</a><br> <span>第一列:This is some text. This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-b"> <a href="#" data-role="button">第二列</a><br> <span>第二列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-c"> <a href="#" data-role="button">第三列</a><br> <span>第三列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-d"> <a href="#" data-role="button">第四列</a><br> <span>第四列:This is some text. This is some text. This is some text. This is some text.</span> </div> <div class="ui-block-e"> <a href="#" data-role="button">第五列</a><br> <span>第五列:This is some text. This is some text. This is some text. This is some text.</span> </div> </div> </div>

jQuery Mobile教程: 网格

5、自定义网格<div data-role="content"> <p>三列样式布局:</p> <div class="ui-grid-b"> <div class="ui-block-a"><span>第一个列</span></div> <div class="ui-block-b"><span>第二个列</span></div> <div class="ui-block-c"><span>第三个列</span></div> </div> </div>

jQuery Mobile教程: 网格

6、列中的多行<div data-role="content"> <p>三列布局:</p> <div class="ui-grid-b"> <div class="ui-block-a" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-b" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-c" style="border: 1px solid black;"><span>Some Text</span></div> </div> <p>多行的三列布局:</p> <div class="ui-grid-b"> <div class="ui-block-a" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-b" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-c" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-a" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-b" style="border: 1px solid black;"><span>Some Text</span></div> <div class="ui-block-a" style="border: 1px solid black;"><span>Some Text</span></div> </div> </div>

jQuery Mobile教程: 网格
© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com