<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
body{
background: #0090ff;
}
.box{
width: 500px;
height: 500px;
background: #fff;
margin: 100px auto;
border-radius :20px;
box-shadow: 5px 5px 2px #888888;
}
.box h1{
text-align: center;
font-size: 25px;
line-height: 40px;
}
.box ul{
list-style: none;
margin-left: 50px;
margin-top: 20px;
}
.box ul li{
line-height: 35px;
font-size: 14px;
}
.box span{
display: block;
width: 80px;
/*background: red;*/
text-align: right;
float: left;
margin-right: 5px;
}
.sub{
width: 100px;
height: 30px;
background: #f27b1e;
border: 1px solid #ccc;
display: block;
color: #fff;
float: left;
margin-left:100px ;
margin-right: 20px;
}
</style>
</head>
<body>
<div class="box">
<h1>用户注册</h1>
<form action="" method="">
<ul>
<li><span>用户名:</span><input type="text" id="name" name="name" value="" placeholder="用户名" size="30" width="200"></li>
<li><span>性别:</span><input type="radio" name="sex" value="male">男
<input type="radio" name="sex" value="male"> 女
<input type="radio" name="sex" value="male"> 保密</li>
<li><span>爱好:</span>
<input type="checkbox" name="happy[]" value="html">HTML
<input type="checkbox" name="happy[]" value="css">CSS
<input type="checkbox" name="happy[]" value="javascript">JavaScript
<input type="checkbox" name="happy[]" value="php">PHP
</li>
<li><span>邮箱地址:</span><input type="text" id="name" name="name" value="" placeholder="example@mail.com" size="30" width="200"></li>
<li><span>密码:</span><input type="password" name="" placeholder="请输入密码" id="" value="" /></li>
<li><span>确定密码:</span><input type="password" placeholder="请确认密码" name="" id="" value="" /></li>
<li><span>个性签名:</span><textarea style="width: 250px; height: 50px;"></textarea></li>
<li style="margin-top: 50px;">
<input type="submit" name="submit" value="提交注册" class="sub">
<a href="">有账号请登录</a>
</li>
</ul>
</form>
</div>
</body>
</html>