IE9的css hack使用示例
浏览:26日期:2024-07-17
以前写过《IE8的css hack》,ie9一出css hack也该更新,以前一直没关注,今天在内部参考群mxclion分享了IE9的css hack,拿出来也分享一下: 复制代码代码如下: select { background-color:red; /* ie 8/9*/ background-color:blue9; /* ie 9*/ *background-color:#dddd00; /* ie 7*/ _background-color:#CDCDCD; /* ie 6*/ } 注意写hack的顺序,其中: 复制代码代码如下: background-color:red;IE8和IE9都支持; background-color:blue9; 仅IE9支持; ===============华丽的分割线=============== 今天在看到另一种hack: 复制代码代码如下: #element { color:orange; } #element { *color: white; /* IE6+7, doesn’t work in IE8/9 as IE7 */ } #element { _color: red; /* IE6 */ } #element { color: green/IE8+9; /* IE8+9 */ } :root #element { color:pink /IE9; } /* IE9 */
相关文章:
热门推荐
- intellij idea和eclipse比较
- 1.Golang压缩Jpeg图片和PNG图片的操作
- 2.如何在FreeBSD上用PHP实现在线添加FTP用户
- 3.Fedora 8 JDK Eclipse Myeclispe安装配置
- 4.Solaris如何增加用户?(groupadd,useradd)
- 5.Linux下安PHP,APACHE,MYSQL,PERL方法 4
- 6.浅析NIO系列之TCP
- 7.Data Blocks and Freelists (from ixora)
- 8.IE6下css设置容器高度的BUG不能小于某个值
- 9.Linux下安PHP,APACHE,MYSQL,PERL方法2
- 10.编程面试过程中常见的10大算法概念汇总