1. 程式人生 > >網站登錄界面(div+css實現)

網站登錄界面(div+css實現)

網站登錄界面(div+css實現)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>叮咚網登錄</title>
<style type="text/css">
.main{
width:100%;
height:920px;
border:1px solid #000;
text-decoration: none;
}
.top{
width:100%;
height:52px;
border:1px solid #000;
}
.downMenu{
width:100%;
height:30px;
font:normal normal 20px "宋體";
color:#fff;
background-color: #000000;
}
#search{
margin-left:520px;
}
a{
text-decoration: none;
}
#img1{
margin-left:330px;
}
#logo{
font:normal normal 20px "宋體";
padding-bottom: 5px;
}
#d{
padding-bottom:30px;
margin-left:290px;
}
a:link{
font-size: 20px;
color:aquamarine;
}
a:visited{
color:darkgray;
}
a:hover{
color:#FFFFFF;
}
a:active{
color:cadetblue;
}
.bottom{
text-align: center;
}
#img5{
width:100%;
height:80px;
}
#dengL{
width:100%;
height:600px;
background:#000000 url(img/loginbg.jpg) no-repeat top center;
background-size:1400px 700px;
padding-top:100px;

        }
        #dengLu{
            border:1px solid #5F9EA0;
            width:400px;
            height:300px;
            background-color:#fffff;
            margin-left:800px;
            /*margin-top:100px;*/
            background-color:#FFFFFF;
            font:normal normal "黑體";
            padding-top:10px;
            padding-left:20px;
        }
        .uersname{
            padding-left:100px;
            padding-top: 50px;
            padding-bottom: 10px;
        }
        .password{
            padding-left:100px;
        }
        .verify{
            padding-left:100px;
            padding-bottom:10px;
        }
        .login{
            padding-left:100px;
        }
    </style>

</head>
<body>
    <div class="main">
        <div class="top">
            <div id="logo">
                <img src="img/logo.gif" title="叮咚網logo" alt="logo"></img>    
                <img src="img/header.png" title="img1"   alt="img1" id="img1"></img>    
                <a href="登錄.html" target="_blank" id="d"><font color="darkcyan">登錄</font></a>&nbsp;&nbsp;
                <a href="註冊.html" target="_blank"><font color="darkcyan">註冊</font></a>&nbsp;&nbsp;
                <a href="購物車.html" target="_blank"><font color="darkcyan">購物車</font></a>
            </div>
        </div>
        <div class="downMenu">
                <a href="#" target="_blank">首頁</a>&nbsp;&nbsp;
                <a href="#" target="_blank">手機數碼</a>&nbsp;&nbsp;
                <a href="#" target="_blank">電腦辦公</a>&nbsp;&nbsp;
                <a href="#" target="_blank">學習用品</a>&nbsp;&nbsp;
                <a href="#" target="_blank">家具電器</a>
                <input  id="search" type="text" name="search" value="search">
                <input type="submit" name="submit" value="submit">
        </div>
        <div id="dengL">
          <div id="dengLu">
            <font color="darkgray" size="5px">會員登錄&nbsp;&nbsp;USER&nbsp;LOGIN</font>
            <div class="uersname">
                用戶:<input type="text" name="username">
            </div>
            <div class="password">
                密碼:<input type="password" name="password">
            </div>
            <div class="verify">
                驗證碼:<input type="text" name="verify">&nbsp;&nbsp;<img src="img/captcha.jhtml.jpg">              </div>
            <div class="login">
                <input type="checkbox" name="zddl" value="自動登錄">自動登錄&nbsp;&nbsp;&nbsp;
                <input type="checkbox" name="wjmm" value="忘記密碼">忘記密碼<br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="submit" name="submit" value="提交">
            </div>
          </div>
        </div>

        <div class="img5">
            <img src="img/footer.jpg" id="img5">
        </div>
        <div class="bottom">
            <a href="#" target="_blank"><font color="dodgerblue" size="3px"> 關於我們</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">聯系我們</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">招賢納士</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">法律聲明</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">友情鏈接</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">支付方式</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">配送方式</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">服務聲明</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">廣告聲明</font></a>
        </div>
        <div class="bottom">
            <font size="2px">Copyright&copy;2015-2016西部開源&nbsp;版權所有</font>
        </div>
    </div>
</body>

</html>

網站登錄界面(div+css實現)