一個簡易的登陸框html(table)+css

來源:互聯網
上載者:User

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>登陸框</title>
</head>
<style>
*{margin:0;padding:0;}
.login{
width:334px;
height:220px;
margin:0 auto;
position:absolute;
left:40%;
top:40%;
}
.login_title{
color: #000000;
font: bold 14px/37px Arial,Helvetica,sans-serif;
height: 37px;
padding-left: 35px;
text-align: left;
}

.login_cont {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #B8B7B7;
    height: 152px;
    padding-top: 30px;
}
.form_table {
    float: left;
    margin-top: 10px;
    table-layout: fixed;
    width: 100%;
}
.form_table th {
    color: #333333;
    font-weight: bold;
    padding: 5px 8px 5px 0;
    text-align: right;
    white-space: nowrap;
}
.form_table td {
    color: #717171;
    line-height: 200%;
    padding: 6px 0 5px 10px;
    text-align: left;
}
.login_cont input.submit {
    background-position: 0 -37px;
    height: 29px;
    margin: 10px 14px 0 0;
    width: 82px;
}
</style>
<body>
    <div class="login">
        <div class="login_title">後台管理登入</div>
        <div class="login_cont">
            <form action='' method='post'>
                <table class="form_table">
                    <col width="90px" />
                    <col />
                    <tr>
                        <th>使用者名稱:</th><td><input class="normal" type="text" name="admin_name" alt="請填寫使用者名稱" /></td>
                    </tr>
                    <tr>
                        <th>密碼:</th><td><input class="normal" type="password" name="password" alt="請填寫密碼" /></td>
                    </tr>
                    <tr>
                        <th></th><td><input class="submit" type="submit" value="登入" /><input class="submit" type="reset" value="取消" /></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</body>
</html>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.