我正在尝试在我的主要内容页面上创建一个垂直按钮列表,当每个按钮将您转移到另一个页面时。 但每次我尝试将它们放在另一个上面时,由于默认的JQM设置,它们非常长。
这是我的代码atm:
<fieldset data-role="controlgroup" data-type="vertical" data-mini="true" class="buttons">
<a href="#popupLogin" data-rel="popup" data-position-to="window" data-role="button" data-icon="info" data-transition="pop" data-inline="true">Sign in</a>
<a href="#popupRegister" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="check" data-transition="pop" >New user? Sign Up!</a>
<a href="#" data-role="button" data-inline="true" data-icon="star" data-transition="slideup" >Return a car</a>
<a href="#directions_map" class="show-page-loading-msg" data-role="button" data-inline="true">Map and routing</a>
<a href="#catalog" data-role="button" data-inline="true">Car Catalog</a></p>
</fieldset>
答案 0 :(得分:0)
尝试将<br>
放在每个按钮的开头,并在每个按钮的末尾放置</br>
更具体的是这里的编辑版本:
<fieldset data-role="controlgroup" data-type="vertical" data-mini="true" class="buttons">
<br><a href="#popupLogin" data-rel="popup" data-position-to="window" data-role="button" data-icon="info" data-transition="pop" data-inline="true">Sign in</a></br>
<br><a href="#popupRegister" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="check" data-transition="pop" >New user? Sign Up!</a></br>
<br><a href="#" data-role="button" data-inline="true" data-icon="star" data-transition="slideup" >Return a car</a></br>
<br><a href="#directions_map" class="show-page-loading-msg" data-role="button" data-inline="true">Map and routing</a></br>
<br><a href="#catalog" data-role="button" data-inline="true">Car Catalog</a></br></p>
</fieldset>