【问题标题】:CSS "unset" / "initial" in Internet ExplorerInternet Explorer 中的 CSS“未设置”/“初始”
【发布时间】:2014-07-10 17:05:06
【问题描述】:

有没有类似的

background-color: unset;

background-color: initial;

Internet Explorer 支持吗?

(在考虑使用 javascript 之前)

【问题讨论】:

标签: css internet-explorer internet-explorer-10 internet-explorer-11


【解决方案1】:

According to MDN,背景颜色的初始值为background-color: transparent;。您可以尝试使用它。

【讨论】:

  • 好的建议唯一的故障是属性的正确名称是:透明而不是颜色:透明:)
  • MDNw3schoolsCanIUse 都将background-color 列为 IE 完全支持。 (我想无视规范 = 支持?)因此,如果人们不考虑专门搜索值 unsetinitial 并检查 它们的 浏览器兼容性,那么一个令人沮丧的世界等待着。 . 直到找到这个 Stack Overflow 的答案,至少。 ;-p
猜你喜欢
  • 2014-06-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-05
  • 1970-01-01
  • 2015-03-19
  • 2023-03-31
  • 1970-01-01
相关资源
最近更新 更多