HTML用户登记页里成立源码

这篇文章主要介绍了HTML用户注册页面设置源码,代码简单易懂,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

设计上图中的网页:

<!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><input type="text" required placeholder autofocus></span> <hr></p>

<p>注册邮箱:<span><input type="email" required placeholder="javin@example.com"></span><hr></p>

<p>密码: <span><input type="password" required placeholder></span><hr></p>

<p>性别:<span >男<input type="radio" name="1" checked>
女 <input type="radio" name="1"> </span><hr>
</p>

<p>年龄:<span><input type="number" name="number1" required placeholder></span><hr></p>

<p>兴趣爱好:<span >
足球<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 ><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p>

<button type=submit>立即注册</button>


<p></p>

</form>

</body>

</html>

来源:本站

链接:https://www.jb51.net/web/748567.html

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。