条件格式化标签在IE8不工作 [英] Conditional formatting tags not working in IE8

查看:158
本文介绍了条件格式化标签在IE8不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个网络开发,我现在正在进行我的格式化,以便IE 8或更新版本。我为以前的浏览器版本,但不是ie8这样做。我的问题是,我的条件格式标签不再工作在此版本的IE。有什么变化?

I am currently working on a web development where I am now doing my formatting to please IE 8 or newer. I have done this for previous browser versions, but not ie8. My issue is that my conditional formatting tags are no longer working for this version of IE. Has something changed?

页面: http:// domain / includes / file.php

css档案: http://domain/css/cssIE8.css

我的网页中的标记如下:

the tag in my page is as follows:

    <!-- [if gte IE 7]>
    <p>Show this in IE</p>
    <link href="../css/profileIE8.css" rel="stylesheet" type="text/css" />
    <![endif]-->

当我删除条件格式化标签时,所有其他浏览器都找到正确的文件。任何想法?

When I remove the conditional formatting tags, all the other browsers find the file just fine. Any thoughts?

我甚至将< p> 标签放在其中,看看是否会显示在页面,它不。我的理解是,这个特定的条件格式化标签将适用于所有Internet Explorer版本比V7

I even placed the <p> tag in there to see if it would display in the page, it doesn't. My understanding is that this specific conditional formatting tag would apply to all Internet Explorer versions NEWER than v7

推荐答案

<! - [if .. 应该被删除。希望它帮助!

The space between <!-- [if.. should be removed. Hope it helps!

<!--[if gte IE 7]>
    <p>Show this in IE</p>
    <link href="../css/profileIE8.css" rel="stylesheet" type="text/css" />
    <![endif]-->

更多信息可以在这里找到: http://msdn.microsoft.com/en-us/library/ms537509(v = vs.85).aspx

More info can be found here: http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx

这篇关于条件格式化标签在IE8不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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