在 Jquery mobile
中,我可以对水平按钮进行分组,但它们的组不会占用 100% 的宽度。
我尝试添加一个设置 width:100%
的类,但这没有用。
我该怎么做?
谢谢!
更新 + 可能的修复:它似乎失败了,因为我在两个按钮中明确使用了 width="50%"
。我做了 45%
并且很合身。按钮可能有一些边距?
应用修复的源代码:http://pastebin.com/ZXDNfAU1
最佳答案
<div class="ui-grid-a">
<div class="ui-block-a"><button type="submit" data-theme="c">Cancel</button></div>
<div class="ui-block-b"><button type="submit" data-theme="b">Submit</button></div>
</div>
如果它不在页脚或页眉元素中,上面将执行此操作。两列网格在这里: http://view.jquerymobile.com/master/demos/grids-buttons/
我不知道如何在页脚中完成它
关于jquery - 带有 jquery mobile 的全宽水平按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3996705/