标签:
A頁面的Iframe 嵌套HTML5頁面,本機打開正常(IE11),發佈到服務器確不能正確顯示,提示不能支持HTML5标签,按F12打开调试模式,然后页面能正确显示,支持HTMl5了...
发此文章记录下,且求救大神们!!!
A頁面如下:
1 <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="TMS.Test1" %> 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5 <html xmlns="http://www.w3.org/1999/xhtml" > 6 <head runat="server"> 7 <title>E_Learning課程教材閱讀</title> <!--$Header: /HRP/TMS/TMEF9/Default.aspx 10 04/10/17 1:25p Davy.yang $--> 8 9 <asp:Literal id="LiteralMetaData" runat="server"></asp:Literal> 10 <script src="/PUB/Script/jquery-1.8.2.min.js" type="text/javascript"></script> 11 </head> 12 <body> 13 <form id="form1" runat="server"> 14 15 <iframe id="Classing" name="aaa" runat="server" style="WIDTH: 100%; HEIGHT: 100%" align="middle" src="" 16 frameBorder="yes"></iframe> 17 18 </form> 19 </body> 20 </html> 21 ------------------------------后台 22 23 Public Partial Class Test1 24 Inherits System.Web.UI.Page 25 26 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 27 Dim Address As String = Server.UrlDecode(Request.QueryString("Address").ToString()) 28 Classing.Attributes.Add("src", Address) 29 End Sub 30 31 End Class
B页面如下:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>test</title> 5 <meta http-equiv="content-type" content="text/html; charset=gb2312"/> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 7 </head> 8 <body> 9 <div style="text-align:center;"> 10 <video src="ABC.mp4" width="1024" height="768" controls="controls" loop="loop" autoplay="autoplay" > 11 您的瀏覽器不支持該視頻標籤。請聯繫資訊更新您的瀏覽器! 12 </video> 13 </div> 14 15 <div> 16 Test HTMl5: <input type="url" list="url_list" name="link" /> 17 <datalist id="url_list"> 18 <option label="W3School" value="http://www.w3school.com.cn" /> 19 <option label="Google" value="http://www.google.com" /> 20 <option label="Microsoft" value="http://www.microsoft.com" /> 21 </datalist> 22 <input type="submit" /> 23 </div> 24 25 </body></html>
标签:
原文地址:http://www.cnblogs.com/Error-937ii8759/p/5431660.html