大佬教程收集整理的这篇文章主要介绍了javascript – 如何让jquery移动控制组宽度100%?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<ul data-role="controlgroup" data-type="horizontal" class="localnav"> <li><a href="#" data-role="button" data-transition="fade" class="ui-btn-active">111</a></li> <li><a href="#" data-role="button" data-transition="fade">222</a></li> <li><a href="#" data-role="button" data-transition="fade">333</a></li> </ul>
帮帮我…谢谢……
CSS:
<style> .ui-grid-a,.ui-grid-a .ui-controlgroup-controls {width: 100%} #homePageButton {width:49%;float:left;margin-left:1%} #logoutButton {width:49%} #footer {height:45px} </style>
HTML:
<div data-role="footer" data-position="fixed" id="footer"> <div data-role="controlgroup" data-type="horizontal" class="ui-grid-a"> <a href="#" data-role="button" data-icon="home" id="homePageButton">Home Page</a> <a href="#" data-role="button" data-icon="forWARD" data-iconpos="right" id="logoutButton">Log Out</a> </div> </div>
结果:
以上是大佬教程为你收集整理的javascript – 如何让jquery移动控制组宽度100%?全部内容,希望文章能够帮你解决javascript – 如何让jquery移动控制组宽度100%?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。