Asp.net 发布时HTML5输入类型无法正确呈现
我已经下载并安装了这个支持HTML5输入类型的软件包 下面是我页面中的代码Asp.net 发布时HTML5输入类型无法正确呈现,asp.net,visual-studio-2010,html,Asp.net,Visual Studio 2010,Html,我已经下载并安装了这个支持HTML5输入类型的软件包 下面是我页面中的代码 <!DOCTYPE HTML> <html> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> </head> <body> <
<!DOCTYPE HTML>
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="testEmail" type="email" />
</div>
<div>
</div>
<asp:TextBox ID="testEmailAsp" runat="server" type="email"></asp:TextBox>
<asp:TextBox ID="testUrlAsp" runat="server" type="url"></asp:TextBox>
<asp:TextBox ID="textBoxTest" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
在移动设备上不工作。我也必须在服务器上安装,我不知道这听起来很傻,但IE9是否支持HTML5输入类型=“电子邮件”,url
我想是吧!当我在IE9中访问该站点时,您需要设置该站点以显示IE9不支持input type=“email”
。
<input name="testEmailAsp" type="text" id="testEmailAsp" type="email" />
<input name="testUrlAsp" type="text" id="testUrlAsp" type="url" />
<input name="textBoxTest" type="text" id="textBoxTest" />
<input type="submit" name="Button1" value="Button" id="Button1" />
<input name="testEmailAsp" type="text" id="testEmailAsp" type="email" />
<input name="testUrlAsp" type="text" id="testUrlAsp" type="url" />
<input name="textBoxTest" type="text" id="textBoxTest" />
<input type="submit" name="Button1" value="Button" id="Button1" />