0
我的代碼:CSS樣式
{
border: 1,
bodyStyle: 'margin:0 0 0 140px;',
style: {
borderColor: 'black',
borderStyle: 'solid', //margin:'0 0 0 140' //margin-left: '140px' }, width: 140, name: 'comp', id:'compId', triggerAction: 'all', mode: 'local', store: new Ext.data.SimpleStore({
fields: ['myId', 'displayText'],
data: [
[1, 'item1'],
[2, 'item2']
]
}), displayField: 'displayText', xtype: 'combo',
},
這裏的Ext JS 2.3 bodyStyle不獲取附加到combobox.Can任何建議如何解決這個問題?
謝謝
這不是在我的情況幫忙。我有一個文本框,並內聯到它即將放置此組合框。 – user2940383 2015-02-09 04:56:13
我有{xtype:'textfield',value:「comboValue」,width:140px}並使用上面的代碼在它旁邊放置了一個combox框,所以我想將margin-style應用到bodyStyle而不是內部元素。 bodyStyle會將樣式應用於整個組合框,樣式元素將應用於其內部元素,即文本。 – user2940383 2015-02-09 05:04:15
你可以發佈你的整個代碼,所以我可以確切地看到你正在試圖實現你的領域的佈局?這聽起來像你試圖把一個texfield放在一個組合框中,正如你所說的將它放在內聯中,我不認爲你可以用ExtJS – mindparse 2015-02-09 10:16:28