2012-03-12 36 views
2

我想更改默認的三角形切換圖標以 '+'/ ' - '如何更改fieldset切換圖標?

.legendFieldSet { 
    border-width: 0px;  
    margin-bottom:10px; 
} 

.legendFieldSet .x-tool-toggle{ 
    background-position: 0 -255px !important; /*the minus sign*/ 
} 

.legendFieldSet .x-panel-collapsed .x-tool-toggle{ 
    background-position: 0 -240px !important; /*the plus sign*/ 
} 

(演示here

這有什麼錯我有什麼?

回答

1

正確的方式做到這一點是這樣的:

.legendFieldSet .x-tool-toggle { 
    background-position: 0 -255px !important; /*the minus sign*/ 
} 

.legendFieldSet.x-fieldset-collapsed .x-tool-toggle { 
    background-position: 0 -240px !important; /*the plus sign*/ 
}