jQuery Mobile的拆分按钮列表多个按钮? [英] Multiple buttons on jquery mobile split button list?

查看:127
本文介绍了jQuery Mobile的拆分按钮列表多个按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何拆分按钮列表中添加多个按钮(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆