简单的兼容的login页面

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="login.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 runat="server">
    <title>验证控件</title>
    <style type="text/css">
    #loginDiv{
        position:absolute;
        top:50%;
        left:50%;
        margin:-100px 0 0 -100px;
        300px;
        height:150px;
        background-color:#FFFFFF;
        text-align:center;        
    } 
    #id{
        background-color:#CCCCCC;
    }
    .text{
        border: 1px solid #0E85D7;
    }
    </style>
    <script type="text/javascript">
    
    
    </script>
</head>
<body id="bd" style=" background-color:#CCCCCC">
    <form id="loginForm" runat="server">
    <div id="loginDiv" >
    <br />
        用户名:<asp:TextBox ID="uname" CssClass="text" runat="server"></asp:TextBox>
       <br /><br />
        密 码:<asp:TextBox ID="pwd" CssClass="text" runat="server"></asp:TextBox>
        <br /><br />
         <asp:Button ID="btnOK" CssClass="btn" runat="server" Text="登录" /> 
        <asp:Button ID="btnConsole"  CssClass="btn"  runat="server" Text="取消" />
    </div>
    </form>
</body>
</html>
原文地址:https://www.cnblogs.com/0banana0/p/2077156.html