Is there anything similar to
有没有类似的东西
background-color: unset;
or
要么
background-color: initial;
that is supported in Internet Explorer?
Internet Explorer支持哪些?
(before thinking in using javascript)
(在考虑使用javascript之前)
2 个解决方案
#1
11
According to MDN, the initial value for background-color is background-color: transparent;
. You could try to use that.
根据MDN,背景颜色的初始值是背景颜色:透明;。你可以尝试使用它。
#2
-4
The solution Microsoft mention, is this:
微软提到的解决方案是这样的:
div.style.clear="left"; // set
div.style.clear=""; //unset
#1
11
According to MDN, the initial value for background-color is background-color: transparent;
. You could try to use that.
根据MDN,背景颜色的初始值是背景颜色:透明;。你可以尝试使用它。
#2
-4
The solution Microsoft mention, is this:
微软提到的解决方案是这样的:
div.style.clear="left"; // set
div.style.clear=""; //unset