有谁知道如何在拆分按钮列表中添加多个按钮(2个拆分按钮)?
在文档中没有提到任何内容
http://jquerymobile.com/test/docs/lists/lists-split.html
在 ListView 内添加另一个<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
关于listview - jQuery Mobile拆分按钮列表上的多个按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7849960/