0
A
回答
0
設置你的列表視圖作爲一個經常分裂列表視圖,然後添加一個DIV的複選框,並把它與一些CSS:
<ul class="has-listCheck" data-role="listview" data-split-icon="info" data-split-theme="d">
<li>
<a href="#">
<h3>Line Item 1</h3>
<p>Sub title 1</p>
</a>
<a href="#"></a>
<div class="listCheck">
<label>
<input type="checkbox">
</label>
</div>
</li>
</ul>
.has-listCheck > li > a:first-child {
margin-left: 40px !important;
}
.has-listCheck >li.ui-last-child > .listCheck {
border-bottom: 1px solid rgb(221, 221, 221);
}
.listCheck {
position: absolute;
top: 0px;width: 40px;bottom: 0px;z-index: 100;
border-top: 1px solid rgb(221, 221, 221);
border-right: 1px solid rgb(221, 221, 221);
background-color: rgb(246, 246, 246);
}
.listCheck .ui-checkbox,
.listCheck .ui-checkbox label {
position: absolute;
top: 0px;bottom: 0px;right: 0px;left: 0px;padding: 0;margin: 0;
}
.listCheck input {
display: none;
}
.listCheck label {
background-image: none;
background-color: transparent;
border: 0;
}
DEMO
相關問題
- 1. JQuery Mobile小複選框
- 2. jQuery Mobile Scroll View中的複選框
- 3. jQuery Mobile複選框controlgroup spacing
- 4. Jquery Mobile複選框單擊?
- 5. Jquery Mobile複選框問題
- 6. jQuery Mobile複選框取消選中
- 7. Jquery Mobile中複選框部分的背景顏色
- 8. 在jquery mobile中更新小部件
- 9. 如何在小部件中使用jquery-ui複選框?
- 10. 定製jQuery Mobile的複選框標籤
- 11. jQuery Mobile的複選框造型問題
- 12. 更改jQuery Mobile的複選框
- 13. 刷新jQuery Mobile中的複選框列表
- 14. JQuery Mobile - 在拆分按鈕列表中使用複選框
- 15. ListView中的複選框
- 16. 單擊複選框點擊選擇Jquery mobile中的所有複選框
- 17. 如何爲jquery mobile中的複選框添加邊框
- 18. JQuery Mobile - ListView中的行數
- 19. Jquery mobile - 使用pageinit刷新複選框
- 20. Rails Simple_form gem和jQuery Mobile複選框
- 21. 動態複選框JQuery Mobile Beta 2
- 22. listview複選框選中的行項目
- 23. 複選框android listview
- 24. jquery-ui多選小部件標籤和複選框選擇錯誤的字段
- 25. jQuery Mobile多選框
- 26. JQuery Mobile:動態Listview +複選框在第一時間混亂顯示
- 27. jquery中無法觸發複選框事件Mobile backbone
- 28. 帶有複選框的ListView
- 29. 帶複選框的WPF ListView
- 30. 帶有複選框的ListView