這篇文章主要介紹了HTML用戶注冊頁面設(shè)置源碼,代碼簡單易懂,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
設(shè)計(jì)上圖中的網(wǎng)頁:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
form{
width: 800px;
height: 700px;
border: 1px solid red;
margin: auto;
background: url(images/tree.jpg) no-repeat -40px 300px;
}
form h3{
margin-left: 200px;
}
p{
margin-left: 200px;
}
hr{
margin-left: 200px;
}
.a1{
margin-left: 85px;
}
.a2{
margin-left: 110px;
}
input,
textarea
{
background: url(images/attention.png) no-repeat right;
}
button{
margin-left: 200px;
background: rgb(81, 187, 125);
color: white;
}
span#as:hover input{
width: 300px;
height: 40px;
}
</style>
</head>
<body>
<form action="">
<h3>用戶注冊:</h3>
<hr>
<p>用戶昵稱:<span class="a1" id="as"><input type="text" required placeholder autofocus></span> <hr></p>
<p>注冊郵箱:<span class="a1" id="as"><input type="email" required placeholder="javin@example.com"></span><hr></p>
<p>密碼: <span class="a2" id="as"><input type="password" required placeholder></span><hr></p>
<p>性別:<span class="a2">男<input type="radio" name="1" checked>
女 <input type="radio" name="1"> </span><hr>
</p>
<p>年齡:<span class="a2" id="as"><input type="number" name="number1" required placeholder></span><hr></p>
<p>興趣愛好:<span class="a1">
足球<input type="checkbox" name="1">
籃球<input type="checkbox" name="1">
游泳<input type="checkbox" name="1">
唱歌<input type="checkbox" name="1">
跑步<input type="checkbox" name="1">
瑜伽<input type="checkbox" name="1">
</span><hr></p>
<p>自我介紹: <span class="a1"><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p>
<button type=submit>立即注冊</button>
<div></div>
</form>
</body>
</html>
到此這篇關(guān)于HTML用戶注冊頁面設(shè)置源碼的文章就介紹到這了,更多相關(guān)html用戶注冊頁面內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!
來源:腳本之家
鏈接:https://www.jb51.net/web/748567.html
申請創(chuàng)業(yè)報(bào)道,分享創(chuàng)業(yè)好點(diǎn)子。點(diǎn)擊此處,共同探討創(chuàng)業(yè)新機(jī)遇!