0
我試圖自定義列表項的佈局。 在右側,我想保留一組2個按鈕(編輯,刪除)和複選框(啓用)。 在剩餘區域的左側應填寫描述性內容。 喜歡這個。使用固定的元素集自定義列表項
[------------ sizing area ------------][fixed width]
我嘗試了UI的佈局併網,但我只能定義一個比例的寬度如。 80%-20%。
<ul data-role="listview">
<li>
<div class="ui-grid-c">
<div class="ui-block-a" style="width:60%;">
content
</div>
<div class="ui-block-b" style="width:20%;">
<input id="enable1" type="checkbox" value="true" class="custom"/><label for="enable1">Enabled</label>
</div>
<div class="ui-block-c" style="width:10%;">
<a id="edit1" href="" data-role="button" data-icon="gear" data-iconpos="notext">Edit</a>
</div>
<div class="ui-block-d" style="width:10%;">
<a id="delete1" href="" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
</div>
</div>
</li>
</ul>
按照要求與代碼的jsfiddle: http://jsfiddle.net/qN7P6/
請張貼相關代碼 – underscore
您可以創建一個jsfiddle來演示哪裏出了問題。從你目前的html中,css丟失了,所以我不能重現發生了什麼問題。 – rene