我實際上試圖說和抱歉,如果標題,如果我有一個框架(Richfaces),正在應用它自己的風格。我有一家公司的CSS,我不是CSS專家,我需要的是重寫來自richfaces的css,以便沒有任何內容適用於公司CSS中的內容。如何重寫一個CSS類,使其沒有被應用?
這裏是CSS從RichFaces的未來,我不想被應用:
*.rf-dt-hdr-c {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #C4C0C9;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #C4C0C9;
background-color: #D4CFC7;
background-image: url(/rfRes/colHdrGrad.png.xhtml?v=4.0.0.Final&db=eAFjZJBjZDBiZBBh!H!!zlXG!1fOH2dgAgA4fAdk&ln=org.richfaces.images);
background-position: top left;
color: #000000;
font-family: Arial, Verdana, sans-serif ;
font-size: 11px;
font-weight: bold;
padding: 4px;
text-align: center;
}
'!important'應該是最後一個度假勝地的最後一個。它顛覆了** Cascading ** Style Sheets的全部目的,並且它喜歡感染你的代碼 - 每次你想從這裏覆蓋一些東西時,你最終會需要另一個'!important'來覆蓋第一個一。 – cHao 2012-01-16 01:06:24