如果IE不';t显示对象[Wordpress中的页眉]


If IE don't show object [Header within Wordpress]

希望将IE浏览器指向静态图像,而不是我在medio.com主页上创建的对象。

这是运行对象的header_block.php文件:

<!--Start of Product Banner-->

<object data=http://prep.medio.com/dash/graphless.html width="450" height="350"> <embed src=http://prep.medio.com/dash/graphless.html id=sgraph width="450" height="350"> </embed> Error: Embedded data could not be displayed. 

<?php
        if (@$data['banner_position'] == "right")
        {
            include("block_header_banner_text.php");
            include("block_header_banner_media.php");
        } else {
            include("block_header_banner_media.php");
            include("block_header_banner_text.php");
        }
    ?>
</div>

我想说的基本上:

如果Chrome,Safari,Opera,Firefox:显示对象。否则:不显示对象。反之亦然,如果这更有意义的话。

IE 9和10显示对象很好。它真的是IE 8和更低的版本。

谢谢!

您是否尝试过用MS注释块注释掉<object>

<!--[if !IE]> <-->
    <object>...</object>
<!--> <![endif]-->
or
<!--[if gte IE 9]> <-->
    <object>...</object>
<!--> <![endif]-->