如何将水平控件组放在页脚中-在jqm 1.1.1中进行了更改? [英] How do I center a horizontal control group in the footer - changed in jqm 1.1.1?

查看:124
本文介绍了如何将水平控件组放在页脚中-在jqm 1.1.1中进行了更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这曾经使控制组位于1.1.0的中心,但现在似乎不在1.1.1中.

This used to work to center the controlgroup in 1.1.0, but now it seems like it doesn't in 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的 align ="center" 属性可能是合适的为此.

Probably align="center" attribute of data-role="controlgroup" div could be suitable for that.

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

这篇关于如何将水平控件组放在页脚中-在jqm 1.1.1中进行了更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆