如何解决css样式表在不同浏览器中显示效果不同的问题

来源:互联网 发布:js escape编码格式 编辑:程序博客网 时间:2024/05/17 22:32

一种简单的办法就是采用:使用IE专用的条件注释

<!--其他浏览器 -->
<link rel="stylesheet" type="text/css" href="css.css" />

<!--[if IE 7]>
<!-- 适合于IE7 -->
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->

<!--[if lte IE 6]>
<!-- 适合于IE6及一下 -->
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

原创粉丝点击