2011-10-06 20 views

回答

4

的Java:

comboBox.addStyleName("combobox-height-style"); 

CSS:

.v-filterselect-combobox-height-style { 
    min-height: 30px; 
} 

.v-filterselect-combobox-height-style .v-filterselect-input { 
    min-height: 30px; 
} 

.v-filterselect-combobox-height-style .v-filterselect-button { 
    min-height: 28px; 
} 

的下拉圖標是一個精靈,不應該被拉伸,更好地使這是30×30像素,並採用了全新的圖像資源作爲一個圖標。例如:

.v-filterselect-combobox-height-style .v-filterselect-button { 
    min-height: 28px; 
    background: url("../img/dropdown_icon_30x30.png") no-repeat scroll transparent; 
} 
+0

,幫助我清楚我的腦海裏,但還是創造一個新的形象是不是我的東西。不管怎樣,謝謝。 –

+0

@ Jeffrey.W.Dong:不客氣!祝圖標好運! – AndroidHustle

+0

@ Jeffrey.W.Dong和順便說一句,如果你認爲我的回答是你正在尋找的東西,如果你想將它標記爲「接受的答案」,那將是非常棒的! =) – AndroidHustle