2015-01-20 100 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