理想實作效果:

1.注冊界面的實作
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>注冊界面</title>
<link rel="stylesheet" href="RESETCSS.css">
<style>
div{
width: 300px;
height: 350px;
border: 1px solid grey;
margin: 8px 0 0 8px;
}
span{
border-bottom: 3px solid purple;
padding-bottom: 3px;
}
a{
text-decoration: none;
float: right;
padding-top: 3px;
color: deepskyblue;
}
.first{
width: 290px;
height: 30px;
border: 1px solid grey;
border-radius: 5px;
margin: 5px 4px;
}
.second{
width: 200px;
height: 30px;
border: 1px solid grey;
border-radius: 5px;
margin: 5px 4px;
}
.third{
width: 79px;
height: 30px;
border: 1px solid blue;
border-radius: 5px;
color: blue;
}
.fourth{
width: 79px;
height: 30px;
border: 1px solid blue;
border-radius: 5px;
vertical-align: middle;
background-image: url("https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1378353400,959510337&fm=26&gp=0.jpg");
background-size: 79px 30px;
}
.zc{
width: 290px;
height: 30px;
border: 1px solid grey;
border-radius: 5px;
margin: 5px 4px;
background-color: skyblue;
color: white;
}
</style>
</head>
<body>
<div>
<form action="">
<span>請注冊</span>
<a href="">立即登錄<</a>
<hr>
<input type="text" class="first" placeholder="請輸入手機號"><br>
<input type="text" class="second" placeholder="請輸入短信驗證碼">
<input type="button" class="third" value="發送驗證碼"><br>
<input type="text" class="first" placeholder="請輸入用戶名"><br>
<input type="password" class="first" placeholder="請輸入密碼"><br>
<input type="password" class="first" placeholder="請再次輸入密碼"><br>
<input type="text" class="second" placeholder="請輸入圖形驗證碼">
<input type="button" class="fourth"><br>
<input type="submit" class="zc" value="立即注冊"><br>
</form>
</div>
</body>
</html>
效果如下:

2.登錄界面的實作
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登錄</title>
<style>
div{
width: 200px;
height: 180px;
border: 1px solid grey;
padding: 8px 8px;
}
.reg{
border-bottom: 3px solid purple;
padding-bottom: 6px;
}
a{
float: right;
text-decoration: none;
color: skyblue;
}
.first{
width: 200px;
height: 25px;
border: 1px solid grey;
border-radius: 2px;
margin: 5px 0;
}
.second{
font-size: 9px;
position: relative;
bottom: 4px;
}
.pwd{
float: right;
font-size: 10px;
margin: 3px;
}
.reg2{
width: 200px;
height: 25px;
border: 1px solid grey;
border-radius: 2px;
margin: 5px 0;
background-color: skyblue;
color: white;
}
</style>
</head>
<body>
<div>
<form action="">
<span class="reg">請登錄</span>
<a href="">立即注冊<</a>
<hr>
<input type="text" class="first" placeholder="請輸入手機號"><br>
<input type="password" class="first" placeholder="請輸入密碼"><br>
<input type="checkbox"><span class="second">七天內自動登錄</span>
<a href="" class="pwd">忘記密碼?</a><br>
<input type="submit" class="reg2" value="登錄">
</form>
</div>
</body>
</html>
實作效果如下:

轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/328156.html
標籤:其他
上一篇:六層PCB板是怎么拼出來的?
