微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

listview – jquery手机拆分按钮列表上的多个按钮?

有人知道如何在分割按钮列表上添加多个按钮(2个分割按钮)?

文档中没有提到

http://jquerymobile.com/test/docs/lists/lists-split.html

添加一个< a>列表视图中的标签不会创建多个拆分按钮.似乎只是将最后一个链接标记解释为分割,并将以前的链接显示为普通链接/按钮.

有没有办法完成这项任务?

非常感谢.

解决方法

你可以在源代码中找到.
<ul data-role="listview" data-split-icon="gear" data-split-theme="d">
 <li><a href="index.html">
    <img src="images/album-bb.jpg" />
    <h3>broken Bells</h3>
    <p>broken Bells</p>
    </a>
    <a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
    </a>
 </li>
</ul>

要么
使用组按钮

<div data-role="controlgroup" data-type="horizontal" >
   <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="notext">Up</a>
   <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="notext">Down</a>
   <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
</div>

参考:http://jquerymobile.com/test/docs/buttons/buttons-grouped.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐