Internet explorer IE条件CSS包括
为什么 我对Internet Explorer条件评论有问题 我使用这个条件Internet explorer IE条件CSS包括,internet-explorer,conditional-comments,Internet Explorer,Conditional Comments,为什么 我对Internet Explorer条件评论有问题 我使用这个条件 <!--[if lte IE8]> <link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/> <![endif]--> 问题是在
<!--[if lte IE8]>
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/>
<![endif]-->
问题是在
。。。为什么?在Firefox中,它被正常渲染(afkors)。我相信你所需要做的就是在IE
和8
之间添加一个空格,所以它看起来像这样:
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/>
<![endif]-->
在上面的例子中,IE和6之间有一个空格。只需对IE和8执行相同的操作:
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="http://www.bvp.hr/Static/Style/IEFix6.css"/>
<![endif]-->
见上文,加上代码顶部的注释将迫使IE进入怪癖模式,这将使页面呈现效果不佳。删除以下评论:
<!-- UUIDM component start -->
<!-- Page generated by UUIDM component - part of WebSuite application platform. Copyright (C) Determinanta. All rights reserved. -->
<!-- UUIDM component start -->
<!-- Page generated by UUIDM component - part of WebSuite application platform. Copyright (C) Determinanta. All rights reserved. -->