asp.net 网站不适用于 Firefox 3.6
所以我制作了一个网站,托管它,它在 firefox 5.0 上运行良好 我的朋友测试了一下,他说这对他不起作用,他使用的是firefox 3.6,
网站是用asp.net编写的。我决定亲自测试一下,他是对的。 firefox 3.6 不允许我使用 asp.net 文本框。项目是 ASP.NET 4.0
关于如何修复它有什么建议吗?
它似乎不仅适用于我的默认登录页面,其余部分似乎都有效。
我是否漏掉了一行代码来使其兼容?
<--------已编辑-------->
我一开始以为文本框不起作用,但实际上它看起来就像首页被冻结,我无法选择文本框或按钮。
这是代码,不确定是否需要包含其他内容。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Login</title>
<style type="text/css">
body
{
background: #D0D0D0;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
padding: 0px;
color: #696969;
position:relative;
z-index: -99;
}
/* Login Box */
.login
{
background: #D0D0D0;
}
.container
{
background-image:url('newui/images/head.png');
border: 1px solid #000000;
width: 518px;
height: 388px;
margin-left: auto;
margin-right:auto;
margin-top: 90px;
}
.content
{
margin-left: 140px;
margin-top: 70px;
}
.header
{
text-align: center;
}
h1#site-name
{
margin-top: 62px;
}
.button
{
margin-left: 100px;
}
</style>
</head>
<body>
<form id="Form1" runat="server">
<div class="login">
<div class="container">
<div class="header">
<h1 id="site-name">
<font color="black" size="5">SES Users Admin</font>
</h1>
</div>
<!--Hello Content -->
<div class="content">
<asp:Label ID="lblUsername" runat="server" Text="Username"></asp:Label>
<asp:TextBox ID="txtUsername" runat="server" Height="21px"
style="margin-left: 2px" Width="133px"></asp:TextBox>
<br /><br />
<asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Height="20px"
style="margin-left: 4px" Width="133px"></asp:TextBox>
<br /><br />
<div class="button">
<asp:label id="lblResult" runat="server" Width="100%"></asp:label>
<asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnlogin_Click"
Width="57px" Height="21px"/>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
So I made a website, hosted it and it works fine on firefox 5.0
my friend tested it out, and he said it doesnt work for him, he is using firefox 3.6
the website is written in asp.net. I decided to test it out myself, and he was right. firefox 3.6 will not let me use the asp.net text box. project is in ASP.NET 4.0
any suggestions on how to fix it?
It seems to not only work for the login page which is my default, the rest seems to work.
is there a line of code I missed to input that makes it compatible?
<--------Edited-------->
I thought at first the text box isn't working, but its actually just looks like the front page is frozen, I cannot select the text box or the button.
this is the code, not sure if I need to include anything else.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Login</title>
<style type="text/css">
body
{
background: #D0D0D0;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
padding: 0px;
color: #696969;
position:relative;
z-index: -99;
}
/* Login Box */
.login
{
background: #D0D0D0;
}
.container
{
background-image:url('newui/images/head.png');
border: 1px solid #000000;
width: 518px;
height: 388px;
margin-left: auto;
margin-right:auto;
margin-top: 90px;
}
.content
{
margin-left: 140px;
margin-top: 70px;
}
.header
{
text-align: center;
}
h1#site-name
{
margin-top: 62px;
}
.button
{
margin-left: 100px;
}
</style>
</head>
<body>
<form id="Form1" runat="server">
<div class="login">
<div class="container">
<div class="header">
<h1 id="site-name">
<font color="black" size="5">SES Users Admin</font>
</h1>
</div>
<!--Hello Content -->
<div class="content">
<asp:Label ID="lblUsername" runat="server" Text="Username"></asp:Label>
<asp:TextBox ID="txtUsername" runat="server" Height="21px"
style="margin-left: 2px" Width="133px"></asp:TextBox>
<br /><br />
<asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Height="20px"
style="margin-left: 4px" Width="133px"></asp:TextBox>
<br /><br />
<div class="button">
<asp:label id="lblResult" runat="server" Width="100%"></asp:label>
<asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnlogin_Click"
Width="57px" Height="21px"/>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)