css 的问题!! 急!

来源:百度知道 编辑:UC知道 时间:2024/09/21 12:30:45
body {background-color: #99FF66; *background-color:#000000!important; *background-color: #FF3333;}

解释下这句CSS
background-color 前面 的 * 这个代表什么意思啊

这段css是个典型的css hack应用 功能是区分
区别Firefox,IE7,IE6:

此段功能如下

设置 Firefox颜色是 #99FF66
IE7颜色是 #000000
IE6颜色是 #FF3333

IE都能识别*;标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important,
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;