2012-03-12 35 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*/ 
}