jQuery Mobile的拆分按钮列表多个按钮? [英] Multiple buttons on jquery mobile split button list?
问题描述
有谁知道如何拆分按钮列表中添加多个按钮(2分按钮)?
Does anyone know how to add multiple buttons (2 split buttons) on a split button list?
有在文档中只字不提
<一个href=\"http://jquerymobile.com/test/docs/lists/lists-split.html\">http://jquerymobile.com/test/docs/lists/lists-split.html
添加另一个&LT; A&gt;在列表视图里面
标记不创建多个拆分按钮。这似乎只是间preT的最后一个环节的标签作为分割并显示previous链接正常链接/按钮。
Adding another <a>
tag inside the listview doesn't create multiple split button. It seems to just interpret the last link tag as the split and shows the previous links as normal links/buttons.
有没有办法来完成这项任务?
Is there a way to accomplish this task?
非常感谢。
推荐答案
您可以在源$ C $ C找到。
You can find in the source code.
<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>
或
使用组按钮
or Use Group Buttons
<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>
参考:<一href=\"http://jquerymobile.com/test/docs/buttons/buttons-grouped.html\">http://jquerymobile.com/test/docs/buttons/buttons-grouped.html
这篇关于jQuery Mobile的拆分按钮列表多个按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!