IE跨浏览器兼容性问题 [英] IE cross browser compatibility problem

查看:119
本文介绍了IE跨浏览器兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用IE时遇到问题。 Everthing使用Firefox很好,但IE 6似乎给css带来了更多麻烦。所以我用

 <![if!IE]> 
< link href =ie6.css =stylesheet>
<![endif]>

要解决问题,但它不起作用。此代码中有任何错误?因为当我改变这个CSS没有改变IE浏览器。

条件注释表示if not IE。

还要注意,您正在使用低级显示的条件注释,这意味着每个浏览器(除 IE外)都将包含额外的CSS文件。



使用<! - [if IE]><![endif] - > 代替。 / p>

i have a problem in using IE. Everthing is good in using firefox but IE 6 seems to be creating more trouble for css. so i used

<![if !IE]>
<link href="ie6.css" rel="stylesheet">
<![endif]>

To fix a problem but it doesnot work. Anything wrong in this code? Because when i altered this css nothing has changed in IE.

解决方案

Well, your conditional comment says "if not IE".
Also note that you're using a downlevel-revealed conditional comment, which means every browser (except IE) will include the extra CSS file.

Use <!--[if IE]><![endif]--> instead.

这篇关于IE跨浏览器兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆