Why do we need multiple background color rules?

I am new to Css and I am having a hard time finding this particular case on the internet, so I am posting a question here.

I am working on an existing codebase and I see something like this.

li {
  background-color: #000 \9;
  background-color: rgba(0, 0, 0, 0);
}

      

I don’t understand the point \9

. But it seems to me that the rules are duplicates and I have to remove one of them.

Could you explain \9

and remove one rule? Thank.

The reason I am asking is because I am converting some css files to fewer files and \9

causing a compilation problem.

+3


source to share


3 answers


\9

- old hacked Internet Explorer that only makes it work in IE (8 and below) rgba is the way to go, you can safely remove the rule \9



+8


source


This is a CSS hack for IE 7, 8 and 9.



To find out more, follow this link .

+2


source


This is an IE hack. See http://webdood.com/?p=57 for details .

+2


source







All Articles