IE不接受字体作为初始使用重要

Meh*_*nce 16 css internet-explorer css3

在chrome中,可以使用font: initial !important;.但在IE(9)中,它没有获得初始价值.

我怎么解决这个问题?

adr*_*ift 30

任何版本的IE initial都不支持 CSS3 关键字.

  • 重新IE,该信息由微软自己的页面确认:http://msdn.microsoft.com/library/hh781508.aspx#keywords (5认同)
  • WOOOOW"IE正在变得更好"他们说.IE10真的很哇. (3认同)

Luk*_*uke 14

@Adrift完全正确,IE目前没有(IE11)支持initial.但要回答"我该如何解决这个问题?"的问题......

font-style: normal;
font-variant: normal;
font-weight: normal;
font-stretch: normal;
font-size: medium;
line-height: normal;
font-family: serif; /* depends on user agent */
Run Code Online (Sandbox Code Playgroud)


Val*_*tin 6

我刚刚遇到这个错误的线高和最小高度.

在IE上,将"initial"替换为"auto"或"inherit".例如:

/*IE*/
line-height: inherit !important;
/* Rest of the world */
line-height: initial !important;

/*IE*/
min-height: auto !important; 
/* Rest of the world */
min-height: initial !important;
Run Code Online (Sandbox Code Playgroud)