2011-06-28 91 views
0

所以我做了一个网站,托管它,它工作正常在Firefox 5.0 我的朋友测试了它,他说它不适用于他,他使用Firefox 3.6asp.net网站不工作与火狐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> 
         &nbsp;&nbsp;&nbsp; 
         <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> 
         &nbsp;&nbsp;&nbsp; 
         <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> 
+1

你是什么意思的“火狐3.6不会让我使用的asp.net文本框” –

+1

我在想象你的代码失败。请编辑您的问题并添加更多信息/代码,因为它显然不可能回答您的问题。 –

+0

我更新了这个问题,请检查 – Angie

回答

0
  1. 检查生成的HTML是有效的。
  2. 安装Firefox 3.6(本地或虚拟机)。
  3. 测试网站。
  4. 重现错误。
  5. 修复它或来这里与更多的细节。
  6. ???
  7. 利润。
+0

错误仍然存​​在,萤火虫不会给出任何错误,头版看起来就像冻结了,当点击它时,就好像文本框和按钮是图像的一部分。不知道该怎么办:( – Angie

+0

代码隐藏是否正确?调试器停止/崩溃了吗?其他旧版本的Firefox是否存在问题(例如3.5)?生成的HTML标记是什么样的? – Albireo

+0

我修复了它,显然问题是是Firefox 3.6不支持负Z指数 – Angie