2013-04-15 13 views

回答

29

在任何版本的IE中,CSS3 initial關鍵字不是supported

+0

感謝您的回覆:) –

+5

重新IE,該信息是由微軟自己的網頁證實:http://msdn.microsoft.com/library/ hh781508.aspx#關鍵字 –

+3

WOOOOW「IE正在變得更好」他們說。 IE10真的很棒。 –

5

我剛剛穿過這個錯誤行高和最小高度。

在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; 
+0

太棒了!它像一個魅力。我只是想知道它們之間有什麼不同。 – Alex

12

@Adrift是完全正確的,即,不目前(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 */