2013-02-25 74 views
0

尋找指向靜態圖像的IE瀏覽器而不是我在medio.com主頁上創建的對象。如果IE瀏覽器不顯示對象[Wordpress中的標題]

這是一個運行物體的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和更低,沒有。

謝謝!

+0

你有ie6-8 classes/ids通過HTML標籤上的條件標籤設置? – Jrod 2013-02-25 20:22:36

回答

0

您是否嘗試過使用MS註釋塊評論<object>

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

or 

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