1. Set Properties in IE6 as long as you write * html. Class {} Here. clss is changed to the name you want. It can also be an ID.
2. Instance
P {color: red; * color: pink; _ color: yellow; _ color/**/: green ;} first color all browsers readable second color all IE series browsers readable third color only ie5, IE6 readable fourth only ie5 readable
3. Good hack method in IE7: Use "* + html "!
Example: XML/htmlCodeExample source code # example {color: #333;}/* Moz */* html # example {color: #666 ;} /* IE6 */* + html # example {color: #999;}/* IE7 */
The font color in Firefox is displayed as #333, the font color in IE6 is displayed as #666, And the font color in IE7 is displayed as #999, and they do not affect each other! This can also be done, and it is applicable to In-line writing (<Div style = ".................... ">): XML/html code width: 100px;/* Mozilla */+ width: 110px;/* IE7 */_ width: 120px; /* IE6 */The sequence cannot be broken, because the more compatible the above, the more IE6 recognizes "+ ".