浅析jQuery移动开发中内联按钮和分组按钮的编写

2020-05-29 07:07:16易采站长站整理

<a href="index.html" data-role="button">Maybe</a>
</div>

2015124160427751.jpg (829×71)

迷你版 data-mini=”true”


<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a href="index.html" data-role="button">Yes</a>
<a href="index.html" data-role="button">No</a>
<a href="index.html" data-role="button">Maybe</a>
</div>

2015124160450552.jpg (815×64)

仅图标 data-iconpos=”notext”


<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<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>

2015124160513451.jpg (822×55)