2012-04-23 45 views
1

我的css文件遵循爲什麼我的CSS選擇器被轉換爲大寫IE

/*mycss.css*/ 
body { 
margin: 0px; padding: 0px; 
} 
a:link { 
color: rgb(255, 255, 255); font-weight: normal; text-decoration: underline; 
} 
a:visited { 
color: rgb(255, 255, 255); font-weight: normal; text-decoration: underline; 
} 
a:active { 
color: rgb(255, 255, 255); text-decoration: none; 
} 
a:hover { 
color: rgb(255, 255, 255); text-decoration: none; 
} 

我在我的PHP文件已正確連接這一點,並在firefox,chrome工作正常,但是當我在Internet explorer我的CSS打開看起來像下面所有我的css選擇器都轉換爲大寫

/*mycss.css*/ 
BODY{ 
margin: 0px; padding: 0px; 
} 
A:link { 
color: rgb(255, 255, 255); font-weight: normal; text-decoration: underline; 
} 
A:visited { 
color: rgb(255, 255, 255); font-weight: normal; text-decoration: underline; 
} 
A:active { 
color: rgb(255, 255, 255); text-decoration: none; 
} 
A:hover { 
color: rgb(255, 255, 255); text-decoration: none; 
} 
+0

這是否導致與CSS的錯誤? IE只是有點這樣做。 – 2012-04-23 14:11:47

+0

你在談論IE開發工具。 – SLaks 2012-04-23 14:11:58

+0

這會導致某種顯示中的錯誤嗎?或者你只是出於好奇而問? – David 2012-04-23 14:12:01

回答

4

這是IE解析CSS選擇器的方式。

它沒有任何區別。

+0

,但對於一些頁面,它不會轉換爲大寫和一些頁面,爲什麼這麼做... – swan 2012-04-23 14:14:03

+0

請提供更多的細節。 – SLaks 2012-04-23 14:17:40

+0

感謝您的回覆,但它得到解決... – swan 2012-04-23 14:25:45

相關問題