2012-04-23 11 views
1

に大文字に変換されるのはなぜ私は従う私の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; 
} 

としてのCSSファイルを持っている私は正しく私の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はちょっとこれをします。 –

+0

あなたはIEの開発ツールについて話しています。 – SLaks

+0

これは何らかの種類の表示でエラーになりますか?それとも、好奇心から尋ねていますか? – David

答えて

4

これはIEがCSSセレクタを解析する方法です。

違いはありません。

+0

しかし、いくつかのページでは大文字に変換されませんし、いくつかのページではなぜそうですか... – swan

+0

詳細を記入してください。 – SLaks

+0

返信ありがとうございますが、解決しました... – swan