所以我做了一个网站,托管了它,它在Firefox5.0上运行得很好,我的朋友测试了一下,他说他用的是Firefox3.6
该网站是用asp.net编写的。我决定亲自测试一下,他是对的。Firefox3.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>发布于 2011-06-28 19:00:48
是否有效。
https://stackoverflow.com/questions/6505319
复制相似问题