我在项目的一部分中使用了embed src,但是当它在mozilla中加载时,它要求插件不显示任何内容,而在其他浏览器中它是流畅的并且显示所有嵌入内容。
<table width="89%" border="0" align="center" id="activity_gallery" style="background-image:url(images/background/bg2_2.jpg)">
<tr >
<td> </td>
<td width="">
<embed src="gallery/activity/trk/trk.html" width="280" height="350"><br></embed>
</td>
<td width="">
<embed src="gallery/activity/rope/rope.html" width="280" height="350"></embed>
</td>
<td width="">
<embed src="gallery/activity/rock/rock.html" width="280" height="350"> </embed>
</td>
<td width="">
<embed src="gallery/activity/group/rock.html" width="280" height="350"></embed>
</td>
</tr>
</table>
请建议我如何让它为mozilla和IE放松。
答案 0 :(得分:4)
<embed>
标记用于插件,您可以在其MDN webpage中阅读。如果其他浏览器允许此标记的非标准行为,那不是Firefox问题。您可以使用不带边框的iframe来显示无缝页面:
使用CSS:
iframe {
border: none;
}
<强>更新强>
W3C standard并不禁止将其用于HTML元素(粗体是我的):
embed元素为外部提供集成点 (通常为非HTML)应用程序或互动内容。
也许你可以使用适当的内容类型使用类型属性type="text/html"