English 中文(简体)
怎样才能把CSS这一类人凌驾于没有应用的东西之上?
原标题:How can override a CSS class to that nothing get applied?

如果标题是,我有一个框架(Richfaces)正在采用自己的风格,那么我实际上试图说什么话和抱歉。 我有一家公司CSS,我并不是一个CSS专家,因此,我需要超越富人手里的 c子,以便任何东西都不会适用于公司CSS。

在这里,我不想应用的正是来自丰富内容的安保部:

*.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;
}
最佳回答

为了推翻这一点,你只能重新制定你所希望的每一项规则,并确保你的公司公司中心在联系秩序中似乎降低。 (现在,你们的公司风格最后适用)

例如,如果你根据你在特别安全局中的需求,以身作则,你就应该把他们与你们联系起来。

<link rel="stylesheet" type="text/css" href="Styles/richface.css" />
<link rel="stylesheet" type="text/css" href="Styles/corporate.css" />

如果风格相同,则会适用上下级/下级的风格(因为这样会超越前者)。

诚然,为了战胜他人,你的特别安全局需要比其他特别安全局更具体。

因此,你还可以确定内容更为具体。

*.rf-dt-hdr-c {

做这样的事情

div#wrapper div.rf-dt-hdr-c {

which increases the specificity. Of course, the rules would need to match your HTML.

详情见:http://www.htmldog.com/guides/csadvanced/specificity/

问题回答

从你们在对答复的评论中描述的意思来说,“我不知道什么是凌驾于拥有的财产。” 在特别安全局的一条规则中,没有办法规定不得适用另一项规则。

text-align: center !important;

进口高于其他风格





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签