【发布时间】: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