CSS hack:区分IE6,IE7,firefox
DIV+CSS 2008/10/16 11:59:58 点击:不统计
关键词:CSS hack
区别IE6与FF:
background:orange;*background:blue;
这句的意思是,在IE6中的背景颜色为绿色,在FF中的背景颜色为orange
background:green !important;background:blue;
这句的意思是,在IE6中的背景颜色为蓝色,在FF中的背景颜色为green
即:IE6能识别*,但不能识别 !important,FF不能识别*,但能识别!important;
这两种方法都可以使用,但是要注意,使用*时,分号在*之前,使用!important方法时,分号在!important之后,!important和前面定义的属性值可以有间隔,也可以没有
注:在IE7中,*和!important这个都能识别
·上一篇:xml2.0标签 >> ·下一篇:网页的制作(经验) >>