css中有些属性的前面会加上“*”“_”
2016-03-22 12:32
525 查看
区别不同浏览器的CSS hack写法:
区别IE6与FF:background:orange;*background:blue;
区别IE6与IE7:background:green !important;background:blue;
区别IE7与FF:background:orange; *background:green;
区别FF,IE7,IE6:background:orange;*background:green !important;*background:blue;
注:IE都能识别*;标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important;
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;
另外再补充一个,下划线"_", IE6支持下划线,IE7和firefox均不支持下划线。
区别IE6与FF:background:orange;*background:blue;
区别IE6与IE7:background:green !important;background:blue;
区别IE7与FF:background:orange; *background:green;
区别FF,IE7,IE6:background:orange;*background:green !important;*background:blue;
注:IE都能识别*;标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important;
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;
另外再补充一个,下划线"_", IE6支持下划线,IE7和firefox均不支持下划线。
相关文章推荐
- iOS-设置视图圆角样式流畅解决方案
- 脚本化css 脚本化内联样式 脚本化css类
- css绝对定位和相对定位的区别
- CSS hack方式一览
- CSS 浮动的16条规则——如果浮动非替换元素,则要指定一个明确的宽度;否则,它们会尽可能地窄
- CSS浏览器兼容问题
- CSS3属性之text-indent文本缩进使用详解
- CSS颜色代码大全
- Css3之基础-4 Css 框模型、内边距与外边距
- 关于css的float
- 文本编辑样式!
- css3毛玻璃模糊效果
- 基本图片与文字布局(浮动,包含块)
- 什么是CSS hack
- table css 控制
- DIV+CSS中标签dl dt dd常用的用法
- CSS学习(十九)-CSS伸缩布局盒
- CSS hack
- CSS-float
- css实现网页布局随滚轮变化响应移动