【问题标题】:If IE don't show object [Header within Wordpress]如果 IE 不显示对象 [Wordpress 中的标题]
【发布时间】:2013-02-25 20:17:57
【问题描述】:

希望将 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 及更低版本没有。

谢谢!

【问题讨论】:

  • 您是否通过 html 标签上的条件标签设置了 ie6-8 类/ID?

标签: php html wordpress object if-statement


【解决方案1】:

您是否尝试过使用 MS 注释块将 &lt;object&gt; 注释掉?

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

or

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

【讨论】:

    猜你喜欢
    • 2012-06-08
    • 1970-01-01
    • 2012-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多