English 中文(简体)
圣母进殿派修女国际协会的条件
原标题:Conditional CSS for IE in Wordpress not working

我知道,这种情况已经多次出现,但我确实在努力找到答案。

我目前正在使用以下法典:

<!--[if IE 9]>
    <style type="text/css">@import "<?php bloginfo( stylesheet_directory ); ?>/ie.css";</style>
<![endif]-->
<!--[if IE 8]>
    <style type="text/css">@import "<?php bloginfo( stylesheet_directory ); ?>/ie8.css";</style>
<![endif]-->

However, the first stylesheet does not pick up at all and the IE8 one is only picked up in IE9. I really don t know what I m doing wrong here.

采用严格的X射线。 任何帮助都将受到广泛赞赏。

以上是奥赫语,也是是,我的主要格言和其他风格。 我也正在使用Wordpress——这只字塔没有改变。

<>光线>

更详细的情况

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-    strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php bloginfo( name ); ?> <?php wp_title(); ?></title>
        <link rel="stylesheet" href="<?php bloginfo( stylesheet_directory ); ?>/reset.css" type="text/css" />
        <link rel="stylesheet" href="<?php bloginfo( stylesheet_url ); ?>" type="text/css" />
        <!--[if IE 9]>
        <link href="<?php bloginfo( stylesheet_directory ); ?>/ie.css" type="text/css" rel="stylesheet" />
        <![endif]-->
        <!--[if IE 8]>
        <link href="<?php bloginfo( stylesheet_directory ); ?>/ie8.css" type="text/css" rel="stylesheet" />
        <![endif]-->
        <link href= http://fonts.googleapis.com/css?family=Averia+Serif+Libre:400,700  rel= stylesheet  type= text/css  />
        <link href= http://fonts.googleapis.com/css?family=Droid+Sans:400,700  rel= stylesheet  type= text/css  />

随后,我写了Java语头版,在Jquery打电话。 并非普通人。

问题回答

假设这些内容载于head,以下列方式加以尝试和替换:

<!--[if IE 9]>
    <link href="<?php bloginfo( stylesheet_directory ); ?>/ie.css" type="text/css" rel="stylesheet" />
<![endif]-->
<!--[if IE 8]>
    <link href="<?php bloginfo( stylesheet_directory ); ?>/ie8.css" type="text/css" rel="stylesheet" />
<![endif]-->




相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签