相关疑难解决方法(0)

CSS中的初始值和未设置值之间有什么区别?

一个简单的例子:

HTML

<p style="color:red!important"> 
    this text is red 
    <em> 
       this text is in the initial color (e.g. black)
    </em>
    this is red again
</p>
Run Code Online (Sandbox Code Playgroud)

CSS

em {
    color:initial;
    color:unset;
}
Run Code Online (Sandbox Code Playgroud)

initial和之间有什么区别unset?仅支持浏览器

CanIUse:CSS取消设置值

开发人员Mozilla Web CSS初始化

css css3

57
推荐指数
2
解决办法
3万
查看次数

标签 统计

css ×1

css3 ×1