Systematically resolve conflicting styles in css

后端 未结 4 1131
长情又很酷
长情又很酷 2021-02-20 04:31

I have some stylesheets from different sources in my web project. I want to harmonize them. Some styles I need from the one, some from the other. Is there a tool or method how

4条回答
  •  执念已碎
    2021-02-20 04:47

    If you view the site in FireFox, and use the Firebug extension, you can then look at each element in your rendered page, and by using the "CSS" tab in firefox, you can see the cascade of style rules that are being applied to that element, and from what CSS source file each came from. It will show you what rules are being overridden, too.

    This is helpful in determining just where each particular rule is coming from, and what is being overridden.

    You still have the task of "rationalizing" your style sheets, and there may be other tools that can help in that.

提交回复
热议问题