Why my css selector gets converted to upper case i

2019-08-01 23:53发布

问题:

I have css file as follow

/*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;
}

i have correctly linked this in my php file and works fine in firefox,chrome but when i open it in Internet explorer my css looks like following all my css selectors are converted to upper case

 /*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;
}

回答1:

This is the way IE parses CSS selectors.

It doesn't make any difference.