1
我已經構建了一個Jquery移動列表視圖。它得到了emlements dynamicaly(我已經硬編碼之一,所以你可以看到):如何將我的按鈕組定位到我的列表項目右側
<ul id="tripData" data-role="listview" class="ui-listview">
<li class="ui-first-child"><a href="#" class="ui-btn ui-btn-icon-right ui-icon-carat-r">Lads Holiday<p><b> Start Date: 2016-03-03</b></p><p><b> End Date: 2016-03-03</b></p><input type="hidden" value="15"></a>
</li>
</ul>
而且我已經建立了一個jQuery Mobile的按鈕組:
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="gear">Edit</a>
<a href="#" data-role="button" data-icon="delete">Delete</a>
</div>
我想知道的是:在哪裏這個按鈕組需要去,做什麼風格,我需要補充,爲了使結果看起來像這樣的列表中的每個元素:
我的列表項目被動態添加到無序列表中。我可能在無序列表中有100多個項目。我在哪裏把控制組放在無序列表中? –
@Kōdonomusō-ka在所有內容結束後添加無序列表。 –