IE firefox hack集
来源:互联网 发布:mac怎么更新safari 编辑:程序博客网 时间:2024/05/01 20:12
1.‘\9’:
eg:.test { color/*\**/: blue\9 }
.header {width:300px;} /* 所有浏览器*/.header {width/*\**/:330px\9;} /* 所有浏览器IE浏览器 */.header {*width:310px;} /* IE7和IE6能识别,IE8和FF不能识别*/.header {_width:290px;} /* IE6能识别,IE7、IE8和FF不能识别*/
2.利用条件注释语句:<!–[if IE]> 此内容只有IE可见 <![endif]–>
lt 表示less than 当前条件版本以下的版本,不包含当前版本。
gte 表示greeter than or equal 当前版本以上版本,并包含当前版本。
lte 表示less than or equal 当前版本以下版本,并包含当前版本。
3.其它hack 技术:
.color1{ color:#F00; color/*\**/:#00F /*\**/}/*IE6,IE7,IE8,FF,OP,SA识别*/.color2{ color:#F00; color /*\**/:#00F /*\9**/}/*IE7,IE8,FF,OP,SA识别*/.color3{ color:#F00; color/*\**/:#00F \9}/*IE6,IE7,IE8识别*/.color4{ color:#F00; color /*\**/:#00F\9}/*IE7,IE8识别*//*“color”和“/*\**/”之间有个空格*/
#test{
color:red; /* 所有浏览器都支持 */
color:red !important;/* Firefox、IE7支持 */
_color:red; /* IE6支持 */
*color:red; /* IE6、IE7支持 */
*+color:red; /* IE7支持 */
color:red\9; /* IE6、IE7、IE8支持 */
color:red\0; /* IE8支持 */
}
body:nth-of-type(1) p{color:red;} /* Chrome、Safari支持 */
0 0
- IE firefox hack集
- IE Firefox Css Hack 汇总
- 各浏览器专属CSS HACK:FIREFOX/OPERA/SAFARI/IE
- 各种浏览器的Hack写法(chrome firefox ie等)
- 各种浏览器的Hack写法(chrome firefox ie等)
- 各种浏览器的Hack写法(chrome firefox ie等)
- CSS:IE,Chrome,Firefox兼容性和CSS Hack
- CSS:IE,Chrome,Firefox兼容性和CSS Hack
- CSS:IE,Chrome,Firefox兼容性和CSS Hack
- 各种浏览器的Hack写法(chrome firefox ie等)
- 各种浏览器的Hack写法(chrome firefox ie等)
- CSS:IE,Chrome,Firefox兼容性和CSS Hack
- CSS:IE,Chrome,Firefox兼容性和CSS Hack
- 各种浏览器的Hack写法(chrome firefox ie等)
- hack兼容IE (Firefox)6 7 8的写法
- 各种浏览器的Hack写法(chrome firefox ie等)
- 【Hack】ie 条件Hack
- ie hack
- MYSQL修改密码并设置允许远程访问
- 使用gettext来支持PHP的多语言
- 素数比率
- js 添加到收藏夹, 函数 AddFavorite(兼容IE,FF,OP)
- Scala创建新的控制结构
- IE firefox hack集
- js动态生成div和事件
- 3Sum Closest
- <!--[if IE]>….<![endif]--> (<!--[if !IE]>||<![endif]-->)
- Sizzle選擇器
- 日月潭之行
- Flex+PHP反向推送(长轮询)
- jQuery的ajax用法整理匯總
- spring学习之@ModelAttribute运用详解