Monday, April 2, 2012

[CSS] IE can read !important now

It's poor that I found Internet Explorer(IE) can read the !important now,
we can use !important to identify the diffient between IE and Chrome,
but right now ??
if you can't believe that,
you can create a html page and copy the coding below, and try the testing:
<html>
<head>
     <style type="text/css">
          p {color:red;color:green!important;}
     </style>
</head>
<body>
<p>testing</p>
</body>
</html>
Before, you can see the text "tesing" with red in IE but green in chrome,
but now both IE and chrome are green.

I have tried diffient version of IE (7,8,9) and at least 5 PC,
the result is same,all in green color.

So sad I don't know how can making the css hack now,
and I can't found any solution related to this topic,
I have a stupid method:
to unity the different font size in the browers,
using html attribute to replace the css style.....

<td width="200px"><font size="2" color="red" >Poor!</font></td>

But why's that !! Poor!!

No comments :

Post a Comment