我們如何創建煎茶列表給出即列線煎茶列表與列線
Q
煎茶列表與列線
1
A
回答
2
你可以用類似的方式定義列表如下:
list = {
xtype: 'list',
itemTpl: [
'<table>',
'<tr>',
'<td class="first-child">{title}</td>',
'<td>{title}</td>',
'<td>{title}</td>',
'<td>{title}</td>',
'<td>{title}</td>',
'<td class="last-child">{title}</td>',
'</tr>',
'</table>'
],
emptyText: '<div class="emptytext">Empty list.</div>'
};
然後使用下面的CSS風格的元素:
.x-list .x-list-item {
min-height: 0;
padding: 0;
}
.x-list .x-list-item div table tr td {
border-right: 1px solid #000;
font-size: 80%;
height: 100%;
padding: 5px;
width: 15%;
}
.x-list .x-list-item div table {
width: 100%;
}
.x-list .x-list-item div table tr .first-child {
width: 25%;
}
.x-list .x-list-item div table tr .last-child {
border-right: none;
}
這應該得到Ë你是這樣的:
1
您可以通過米切爾Simoens使用優秀TouchGridPanel插件
相關問題
- 1. 在煎茶觸摸列表
- 2. 縮放與煎茶圖表
- 3. 添加列表煎茶觸摸屏
- 4. 煎茶觸摸:刷新列表:商店
- 5. 煎茶觸摸 - 試圖從列表
- 6. 煎茶觸摸2列表100%高度
- 7. 包裝與煎茶CMD一個煎茶觸摸應用
- 8. 煎茶觸摸工具欄排列
- 9. 煎茶建築師 - 與表單
- 10. 煎茶nestedList getActiveItem()
- 11. 煎茶+ PhoneGap的
- 12. 在煎茶
- 13. 更新列表通過點擊按鈕煎茶觸摸
- 14. 顯示從嵌套的JSON列表:煎茶觸摸2
- 15. 煎茶觸摸列表搜索無法正常工作
- 16. 如何序列數據呈現在煎茶圖表標題
- 17. 嵌套數據煎茶觸摸列表TPL
- 18. 煎茶觸摸2 Ajax代理未顯示在列表數據
- 19. 如何在煎茶
- 20. 在煎茶觸摸
- 21. 在煎茶觸摸
- 22. Leaflet.js更改層與煎茶觸摸
- 23. 如何與煎茶PHP一同工作
- 24. 運行與煎茶測試CLI
- 25. 煎茶觸摸 - 從數場
- 26. 煎茶觸摸 - 使用MVC
- 27. 煎茶觸摸:JSONP解析
- 28. Ext.plugins.ListPagingPlugin「pullrefresh」煎茶觸摸
- 29. 煎茶Ext.Map usecurrentlocation否認
- 30. 煎茶:不能滿足「轉」
感謝您的答覆。我已經通過給列表中的每個項目添加邊框來嘗試它。但是在顯示中它不會顯示爲一條連續的線。 – heyjii
你有沒有嘗試減少包含div元素的填充? –
@heyjii我更新了我的答案與樣式,並修改了您需要使用的標記。 –