首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >asp.net网站不支持Firefox3.6

asp.net网站不支持Firefox3.6
EN

Stack Overflow用户
提问于 2011-06-28 18:54:08
回答 1查看 314关注 0票数 0

所以我做了一个网站,托管了它,它在Firefox5.0上运行得很好,我的朋友测试了一下,他说他用的是Firefox3.6

该网站是用asp.net编写的。我决定亲自测试一下,他是对的。Firefox3.6不允许我使用asp.net文本框。项目在ASP.NET 4.0中

对如何修复它有什么建议吗?

它似乎不仅适用于登录页面,这是我的默认,其余的似乎工作。

是不是有一行我在输入时漏掉的代码使它兼容?

<-已编辑->

一开始我以为文本框不工作,但实际上它看起来就像是首页被冻结了,我不能选择文本框或按钮。

这是代码,不确定是否需要包含其他内容。

代码语言:javascript
复制
<%@ 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>
EN

回答 1

Stack Overflow用户

发布于 2011-06-28 19:00:48

  1. 检查生成的details.
  2. ???
  3. Profit.

是否有效。

  • 安装Firefox3.6(本地或在虚拟机中)。

  • 测试错误。

  • 修复错误或带更多HTML来到此处
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6505319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档