开发者

how to tell browser then recognize my stylesheet first then the framework i use?

开发者 https://www.devze.com 2023-02-17 07:36 出处:网络
I use blueprint and browser recognize them first and not mine if they have something. how i can do something then开发者_C百科 browser recognize the style-sheet of mine first then they try to use them

I use blueprint and browser recognize them first and not mine if they have something.

how i can do something then开发者_C百科 browser recognize the style-sheet of mine first then they try to use them in page.

i know i can use !important but it's not good that i put !important on every tag. are their any hack to apply my stylesheet first even blueprint have some for them.


It sounds like you may be using stylesheets in the opposite order of what you want. If you want your styles to be in effect instead of the styles from the frameworks you are using, list your stylesheets after the other stylesheets. Ideally, your stylesheets will be listed last. That's the effect of cascading for stylesheet rules.


Stylesheets are applied in order of appearance, just insert your css after those of the framework.


Browsers have specificity rules that determine which style is applied. If you have multiple external stylesheets, the easiest way to ensure that your desired styles are applied is to load your stylesheet after the Blueprint stylesheet. Any style rules defined in your stylesheet will override the Blueprint styles.

0

精彩评论

暂无评论...
验证码 换一张
取 消