abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>lesson2練習(xí)登錄框</title> <style type="text/css"> * {margin: 0px; padding: 0px;}.Log
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>lesson2練習(xí)登錄框</title>
<style type="text/css">
* {margin: 0px; padding: 0px;}
.Loginbox {width: 200px; height: 200px; background-color: #ccc; margin: 0px auto;}
input{width: 180px; height: 30px; margin: 20px 10px 0px 10px; border: none; }
button{width: 180px; height: 30px; margin: 20px 10px 0px 10px ;border:none; background-color: #1c86ee; color: #fff; margin-bottom: 20px;}
</style>
</head>
<body>
<div class="Loginbox">
<form method="post" action="#">
<input type="text" name="username" placeholder="請(qǐng)輸入用戶名"><br>
<input type="password" name="password" placeholder="請(qǐng)輸入密碼"><br>
<button>登錄</button><br>
<a href="#">注冊(cè)</a>
<a href="#">直接登錄</a>
</form>
</div>
</body>
</html>
Correcting teacher:天蓬老師Correction time:2019-06-24 10:28:40
Teacher's summary:表單元素之間用<br>換行, 大多用在臨時(shí)的案例演示中, 推薦用<div>或者 <p>來代替