Asp.net 嵌入式对象:浏览器依赖关系?
我已经组装了一个web应用程序,它在我的页面中嵌入了几个其他web页面。在Chrome和IE中,它可以正常工作,但在Firefox中,它表示需要一个缺少的插件。如果我点击“安装缺少的插件”,Firefox就找不到了。奇怪的是,我页面上的所有内容都加载良好。这是Firefox中的一个bug吗 这是我的标记:Asp.net 嵌入式对象:浏览器依赖关系?,asp.net,html,firefox,Asp.net,Html,Firefox,我已经组装了一个web应用程序,它在我的页面中嵌入了几个其他web页面。在Chrome和IE中,它可以正常工作,但在Firefox中,它表示需要一个缺少的插件。如果我点击“安装缺少的插件”,Firefox就找不到了。奇怪的是,我页面上的所有内容都加载良好。这是Firefox中的一个bug吗 这是我的标记: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<fieldset id="total">
<legend>Total Statistics</legend>
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always">
<ContentTemplate>
<object data="http://sceedev16/flashboard.html" style="width: 100%; height:400px">
<embed src="http://sceedev16/flashboard.html" width="100%" height="400"></embed>
</object>
<asp:Timer ID="ui_timer" runat="server" Interval="60000" OnTick="Timer_Tick"></asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
</fieldset>
</asp:Content>
总统计
您是否为firefox安装了Flash/Shockwave插件?导致firefox出现问题的是
标签。Firefox不支持在
标记中使用文档作为源。它将仅使用
标记工作,但:
<object data="http://sceedev16/flashboard.html" style="width: 100%; height:400px">
</object>
有两个主要的选择,一个是转换成另一个。为了更好的浏览器兼容性和更少的代码,我建议改用iframe:
<iframe src="http://sceedev16/flashboard.html" width="100%" height="400" />
flashboard.html的内容类型是什么?签入Firebug或Web控制台。