使用浏览器默认值覆盖reset.css [英] Override reset.css with browser defaults
本文介绍了使用浏览器默认值覆盖reset.css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这听起来像是一个奇怪的问题,但实际上我需要使用浏览器默认值覆盖CSS重置文件(因此与正常情况相反).
I know this might sound like a strange question but I actually need to override a CSS reset file with the browser defaults (so the other way around than normal).
所以当我reset.css声明时
So when my reset.css states
li{
padding: 0;
}
我想用浏览器的默认值覆盖它.
设置
I want to override that with the browser defaults.
Setting
li{
padding: auto !important;
}
虽然无效.
有没有办法做到这一点?
Is there a way to do this?
推荐答案
默认样式表因浏览器和版本而异.您可以通过使用相应的CSS文件来应用浏览器的默认样式表:
The default stylesheets are different from browser to browser and from version to version. You can apply the browser's default stylesheet by using the respective CSS files:
更简单的解决方案可能是仅删除重置样式.
The much simpler solution might be to just remove the reset styles.
这篇关于使用浏览器默认值覆盖reset.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文