Stonefishy Blog - by Andrew Shi

Scribbles of a front and back ends developer

CSS Tricks for IE6,IE7,IE8,IE9

As web developer, we usually to fix the style for special version of IE. Here are the newest CSS tricks for IE6, IE7, IE8, IE9. This is very helpful for you.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ie-tricks{

  /* All browsers */
  color:red;

  /* All browsers but IE6 */
  color:red !important;

  /* Only works in IE6 */
  _color:red;

  /* IE6, IE7 */
  *color:red;

  /* Only works in IE7*/
  +color:red;

  /* Only works in IE7 */
  *+color:red;

  /* IE6, IE7, IE8, IE9 */
  color:red\9;

  /* IE8, IE9 */
  color:red\0;

  /*Only works in IE9*/
  color:red\9\0;

}