2012-05-25 39 views

回答

5

,位於div.x-list-item-label,只是它的CSS樣式改爲:

border-top: none !important; 
border-bottom: none !important; /* For the last row */ 

希望它能幫助。

+1

好的,我絕對可以找到它。但我想知道爲什麼它存在於一個名爲'... label'的類中。無論如何,謝謝。 –

+0

感謝您的完整編輯:) –

2

只有當您希望它適用於應用中的每個單一列表時,上述方法纔是正確的。

如果您想以正確的方式執行此操作,則需要將內聯樣式添加到您創建的列表中。以下是我在應用程序的收件箱屏幕中所做的工作:

{ 
xtype: 'list', 
disableSelection: true, // only if you want to disable selection of the list 
config: { 
     style: { 
      'border': '0', 
     }, 
}, 
itemTpl: '<div>{itemContent}</div>' 
}