jquery-mobile – 如何将页脚中的水平控制组居中 – 在jqm 1.1.1中更改?

前端之家收集整理的这篇文章主要介绍了jquery-mobile – 如何将页脚中的水平控制组居中 – 在jqm 1.1.1中更改?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
这曾经用于将控制组置于1.1.0中心,但现在看起来好像它不在1.1.1中.
<div data-theme="a" data-role="footer" style="text-align:center;">
   <div data-role="controlgroup" data-type="horizontal" data-mini="true">
      <a href="foo" data-role="button">link1</a>
      <a href="boo" data-role="button">link2</a>
   </div>
   <div class="copy">&copy; 2012 bigco</div>
</div>

解决方法

data-role =“controlgroup”div的对齐=“中心”属性可能适合于此.
<div data-theme="a" data-role="footer" align="center">
   <div data-role="controlgroup" data-type="horizontal" data-mini="true">
      <a href="foo" data-role="button">link1</a>
      <a href="boo" data-role="button">link2</a>
   </div>
   <div class="copy">&copy; 2012 bigco</div>
</div>

http://jsfiddle.net/sGFTy/1/

原文链接:https://www.f2er.com/jquery/177621.html

猜你在找的jQuery相关文章