代码之家  ›  专栏  ›  技术社区  ›  forrest

为什么我的IE8特定样式表不正确的浏览器样式?

css
  •  0
  • forrest  · 技术社区  · 14 年前

    我正在做一些PSD到XHTML转换的微调,并调整一些IE8样式——或者至少尝试一下。我有一个IE7和IE8样式表,但出于某种原因,IE8不响应我的样式更改。我做了一些剧烈的字体颜色变化,但即使这样也没有反应。

    我已经确认样式表在服务器上,并确保页面有效,但没有骰子。

    这是 page :

    以下是元信息:

    <link rel="stylesheet" type="text/css" media="all" href="_css/filter.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="fancybox/jquery.fancybox-1.3.1.css"/>
    <!--[if IE 7]>
        <link href="_css/ie7.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <!--[if IE 8]>
        <link href="_css/ie8.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    

    下面是一个例子,我试图改变一些东西,只是为了看看它是否连接在一起:

    标准CSS:

    #intro #blurb h2     { font: bold 31px color: #fffeff; margin: 10px 0 10px 20px; }
    

    IE8样式:

    #intro #blurb h2     { font: bold 31px color: #ff2500; margin: 10px 0 10px 20px; }
    

    任何帮助都将不胜感激。

    谢谢。

    1 回复  |  直到 14 年前
        1
  •  2
  •   Lekensteyn    14 年前

    检查:

    要检查问题是否在CSS或条件注释中,请使用:

    <!--[if IE 8]>
        This should displayed in IE8 only.
    <![endif]-->