制作整个CSS工作表!重要 [英] Make entire CSS sheet !important

查看:61
本文介绍了制作整个CSS工作表!重要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法使整个CSS样式表优先于另一个?我知道您可以执行!important,但是我可以用一行完成该操作,而不是修改工作表中的所有数千个属性吗?

Is there a way to make an entire CSS Style sheet take precedence over another? I know you can do the !important but can I do that with one line rather than modify all thousand properties on the sheet?

谢谢!

推荐答案

确保所需的样式表最后被调用(或所需的特定样式被最后调用)。例如,使用以下命令:

Make sure the stylesheet you want is called last (or a specific style you want is called last). For example, using this:

span { color: red; }
span { color: blue; }

...将打开&s; span>中的所有文本的蓝色。在此处

...will turn all text in <span>'s blue. Take a look here.

这篇关于制作整个CSS工作表!重要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆