我有一個名爲.item的高斯,它非常複雜..我只想改變懸停顏色,而不是將所有類名拷貝到另一個名字上,只是爲了改變懸停顏色。將000000顏色更改爲FC0000的簡單方法是什麼?在不添加新類的情況下更改css中的顏色?
.item-test a.hover .thumb {
border-bottom-color: #000000;
border-bottom-style: solid;
border-bottom-width: 5px;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
border-left-color-value: #000000;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-left-style-value: solid;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-left-width-value: 5px;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-right-color-value: #000000;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-right-style-value: solid;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-right-width-value: 5px;
border-top-color: #000000;
border-top-style: solid;
border-top-width: 5px;
overflow-x: hidden;
overflow-y: hidden;
}
'CSS牆攻擊你,造成28行傷害!你的[重構遺蹟]防止21行傷害。「 – drudge 2011-02-22 22:37:22