サマリー:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城登陸頁(yè)面</title> <link rel="shortcut icon" type="im
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城登陸頁(yè)面</title> <link rel="shortcut icon" type="image/x-icon" href="D:/my-mi/images/footlogo.png"> <link rel="stylesheet" type="text/css" href="D:/my-mi/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="D:/my-mi/css/logoin.css"> <script type="text/javascript" src="D:/my-mi/js/jquery-3.3.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.denglu-a1').click(function(){ $(this).css('color','orange'); $('.denglu-a2').css('color','#222'); $('.form1').show(); $('.form2').hide(); }) $('.denglu-a2').click(function(){ $(this).css("color",'orange'); $('.denglu-a1').css('color','#222'); $('.form1').hide(); $('.form2').show(); }) }) </script> </head> <body> <header><a href="index.html"><img src="D:/my-mi/images/5.png" alt=""></a></header> <div> <a href="#"> </a> <div> <div> <div> <p><a href="#">賬號(hào)登陸</a></p><p><a href="#">掃碼登陸</a></p> </div> <div> <input type="text" name="username" placeholder="郵箱/手機(jī)號(hào)碼/小米ID"> <input type="password" name="password" placeholder="密碼"> <button><a href="#">登陸</a></butto> <div> <p><a href="#">手機(jī)短信登陸/注冊(cè)</a></p> <p><a href="#">立即注冊(cè)</a><span>|</span><a href="#">忘記密碼?</a></p> </div> <div> <ul> <li><a href="#" style="background: #0288D1;"><i class="fa fa-qq" ></i></a></li> <li><a href="#" style="background:red;"><i class="fa fa-weibo" ></i></a></li> <li><a href="#" style="background: #00aaee;"><i class="fa fa-twitter-square"></i></a></li> <li><a href="#" style="background: #00d20d;"><i class="fa fa-weixin" ></i></a></li> </ul> <p>其他方式登陸</p> </div> </div> <div> <div><img src="D:/my-mi/images/erweima.png" alt=""></div> <div> <p>使用<span>小米商城App</span>掃一掃</p> <p>小米手機(jī)可打開(kāi)「設(shè)置」>「小米帳號(hào)」掃碼登錄</p> </div> </div> </div> </div> </div> <footer> <p> <a href="#"><span>簡(jiǎn)體</span></a> <b>|</b> <a href="#"><span>繁體</span></a> <b>|</b> <a href="#"><span>English</span></a> <b>|</b> <a href="#"><span>常見(jiàn)問(wèn)題</span></a> <b>|</b> <a href="#"><span>隱私政策</span></a> </p> <p>小米公司版權(quán)所有-京ICP備10046444-<img src="D:/my-mi/images/ghs.png" alt="">京公網(wǎng)安備11010802020134號(hào)-京ICP證110507號(hào)</p> </footer> </body> </html>
*{margin:0px;padding: 0px;} a{color: #999;text-decoration: none;} li{list-style: none;} .clear{clear: both;} header{width: 1226px;height: 50px;margin:30px auto;} header img{margin-left:50px;} /*--------主題---------------*/ .countent{ width: 100%; height: 589px; background: url("D:/my-mi/images/login.png")no-repeat left center; cursor:pointer } /*.countent>a{ display:inline-block; width: 100%; height: 589px; }*/ .center{width: 1226px;height: 589px;margin:0px auto;position: relative;} .logoin{width: 460px;height: 600px;position: absolute; top:40px; right: 0px; background: #fff; } .logoin .denglu{ width: 460; height: 40px; margin:30px auto; } .logoin .denglu p{ display: inline-block; float: left; width:229px; height: 40px; line-height: 40px; text-align: center; font-size: 32px; } .logoin .denglu p>a{ color: #222; } .logoin .denglu p>a:hover{color: orange;} .logoin .denglu .p1{ border-right: 1px solid #ccc; } .logoin .denglu .p2{ border-left: 1px solid #ccc; } .logoin .denglu .p1>a{ color:orange; } /*-----賬號(hào)登陸--------*/ .form1{ width: 400px; height: 300px; margin:0px auto; } .form1 input{ width:357px; height: 20px; line-height: 26px; padding:10px 20px; margin-top: 15px; font-size: 16px; } .form1>button{width: 400px;height: 46px; background: #fff;border:none;} .form1 button>a{ display: block; width:100%; height: 46px; line-height: 46px; color: #fff; font-size: 18px; background: orange; margin-top: 30px; } .message{ width: 400px; margin-top: 10px; } .message>p{ display: inline-block; font-size: 16px; float: left; text-align: left; } .message>p a{ color: orange; } .message .div-p{float: right;} .message .div-p span{ margin:0px 5px; } .message .div-p a{ color: #999; } .message .div-p a:hover{color: orange;} .form1 .but{ width: 400px; height: 90px; line-height: 90px; margin-top: 160px; border-top:1px solid #777; position: relative; } .form1 .but li{ float: left; width: 100px; text-align: center; font-size: 22px; } .form1 .but li>a{ display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 15px; color: #fff; } .form1 .but>p{ width: 100px; height: 30px; line-height: 30px; text-align: center; background: #fff; position: absolute; top:-15px; left: 150px; } /*------掃碼登陸-----------*/ .form2{ width: 400px; height: 300px; margin:0px auto; text-align: center; margin-top:140px; display: none; } .d-img img{ width: 200px; height: 200px; } .d-txt{ width: 400px; height: 60px; margin-top: 20px; } .d-txt p{ color: #999; line-height: 30px; } .d-txt p span{ color: orange; } /*----------底部------------*/ footer{width: 100%;height: 80px;margin-top: 60px;text-align: center;color: #999;} footer p{height: 40px;line-height: 40px;} footer .sp0{color: #333;} footer p a span:hover{color: #333;} footer b{display: inline-block;margin:0px 15px;}
老師,背景圖區(qū)域點(diǎn)擊是跳轉(zhuǎn)的,改用什么方法完成
添削の先生:滅絕師太添削時(shí)間:2019-01-11 10:56:48
先生のまとめ:加個(gè)鏈接就好啦!也可以使用js來(lái)完成的!試試看~