如何在JQuery移动标题中添加3个按钮?我有2个按钮,使用输入类型,隐藏标签没有样式或显示(它在其他两个按钮下)。
JSFiddle有两个内联按钮,但我们希望最后一个按钮(词汇表标签按钮)与另外两个按钮内联!这可能吗?
<div data-role="header" style="overflow:hidden;">
<h1>Your uploaded Info</h1>
<a href="#" data-rel="back" data-icon="arrow-l" class="ui-btn-left" data-transition="slide" data-direction="reverse">Menu</a>
<div id="Trending" class="ui-btn-right" data-inline="true">
<a href="../tools/glossary.html" data-icon="gear" class="ui-btn-right" data-transition="slide" data-inline="true" data-direction="reverses">Glossary</a>
<fieldset data-role="controlgroup" data-type="horizontal">
<label for="cbTrendOn">check if trending ON</label>
<input type="checkbox" name="cbkTrendsON" id="cbTrendOn" value= "check if trending ON" onclick="rbTrendsON()">
<input type="button" name="graphTrend" id="btnGraphTrend" value="Graph Trends" onclick="btnGraphTrend()" >
</fieldset>
</div>
</div>
答案 0 :(得分:1)
这有用吗? (请注意:我对jQuery Mobile不太熟悉)
<fieldset data-role="controlgroup" data-type="horizontal">
<label for="cbTrendOn">check if trending ON</label>
<input type="checkbox" name="cbkTrendsON" id="cbTrendOn" value="check if trending ON" onclick="rbTrendsON()" />
<input type="button" name="graphTrend" id="btnGraphTrend" value="Graph Trends" onclick="btnGraphTrend()" />
<a href="../tools/glossary.html" data-icon="gear" class="ui-btn" data-transition="slide" data-inline="true" data-direction="reverses">Glossary</a>
</fieldset>