开发者

JqueryMobile - Listviews right arrow

开发者 https://www.devze.com 2023-02-02 17:55 出处:网络
Is possible to make a standard jquerymobile listvie开发者_如何学Pythonw without the right arrow image that apears on the rigt of the li object?

Is possible to make a standard jquerymobile listvie开发者_如何学Pythonw without the right arrow image that apears on the rigt of the li object?

Standard list view

Thanks


In versions of jQuery Mobile >= 1.0, use the data-icon attribute:

<li data-icon="false"><a href="#yourref">Your Text</a></li>

data-icon="false" attribute removes the arrow.


Another way of doing this will be by adding data-icon="false" to the ul instead of li as indicated by Jacob above.

<ul data-role="listview" data-icon="false">

This way, all child objects within the listview will by default carry no icons.


If icon still persist just remove a tag or wrap it with a div. e.g

<div>
  <a> //your stuff here </a>
</div>


add data-icon-"false" on the li tag

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号