2015-01-20 97 views
1

我想在另一個使用嵌入標籤的HTML頁面中嵌入一個PHP頁面,但是在Firefox上它顯示爲只是一個灰色框。它在谷歌瀏覽器上正常工作。根據谷歌搜索,<embed>已棄用,他們建議使用<object>標記,但是可以使用text/html而不是圖像或swf/media?替代嵌入標籤?

我當前的代碼:<embed src="post.php" height="35" width="850">

回答

2

你可以嘗試使用以下:

<object data=http://www.example.com/page.php width="850" height="35"> 
    <embed src=http://www.example.com/page.php width="850" height="35"> </embed> 
    Error: The page could not be embedded. 
</object> 
+0

這工作,謝謝。 – CarlosAllende 2015-01-20 21:51:22