FF, IE6, IE7的CSS hack
2008-04-05 12:54
399 查看
http://www.aixq.com/read.php?704
现在我大部分都是用!important来hack,对于ie6和firefox测试可以正常显示,但是ie7对!important可以正确解释,会导致页面没按要求显示!搜索了一下,找到一个针对IE7不错的hack方式就是使用“*+html”,现在用IE7浏览一下,应该没有问题了。
现在写一个CSS可以这样:
#example { color: #333; } /* Moz */
* html #example { color: #666; } /* IE6 */
*+html #example { color: #999; } /* IE7 */
现在我大部分都是用!important来hack,对于ie6和firefox测试可以正常显示,但是ie7对!important可以正确解释,会导致页面没按要求显示!搜索了一下,找到一个针对IE7不错的hack方式就是使用“*+html”,现在用IE7浏览一下,应该没有问题了。
现在写一个CSS可以这样:
#example { color: #333; } /* Moz */
* html #example { color: #666; } /* IE6 */
*+html #example { color: #999; } /* IE7 */
相关文章推荐
- 全面兼容ie6,ie7,ie8,ff的CSS HACK写法
- 对ie6、ie7、ff兼容性的详细css hack介绍
- CSS IE6、IE7、FF兼容性的详细CSS HACK
- IE6,IE7,FF | CSS + DIV 兼容问题综合解决方案CSS HACK
- [css hack]区别FF、IE7和IE6
- IE6,IE7,FF | CSS + DIV 兼容问题综合解决方案CSS HACK
- IE7 IE6 FF 简单的CSS Hack
- IE6 IE7 FF的CSS Hack总结(转载)
- IE6 IE7 FF的CSS Hack总结
- 对IE6、IE7、FF兼容性的详细CSS HACK介绍
- css ie6 ie7 ff的CSS hack使用技巧
- IE6,IE7,FF | CSS + DIV 兼容问题综合解决方案CSS HACK【转】
- 一些IE6 IE7 IE8 FF的CSS hack
- 转载,必须掌握的关于IE6、IE7和FF最简单的CSS hack技巧
- css hack整理:区别FF,IE8,IE7,IE6,SF,CH浏览器
- IE6,IE7,FF | CSS + DIV 兼容问题综合解决方案CSS HACK
- [转]CSS hack几个新的标识符 - 区分IE7、IE6、FF和Opera
- IE6 IE7 FF CSS HACK
- CSS hack 完全手册 ( IE5.5 IE6 IE7 FF Opera Safari Chrome )