<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>
<style>
*:focus {outline: none;}
.a{
width: 600px;
height: 400px;
position: absolute;
top: 100px;
left: 300px;
background-color:pink;
font-family:Georgia;
}
h2 {
margin: 0 0 0 240px;
}
span {
width:85px;
display:inline-block;
padding:3px;
margin-left: 70px;
}
.a li{
padding:8px;
position:relative;
}
.a button{margin-left:180px;}
ul{
width:750px;
list-style: none;
margin:0px;
padding:0px;
}
.usually input {
height:15px;
width:220px;
padding:5px 8px;
}
.usually input,
.usually textarea {
background: #fff url(images/attention.png) no-repeat 60% center;
border:0px solid #aaa;
box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eee inset;
border-radius:2px;
transition: padding 0.5s;
}
.usually input:focus,
.usually textarea:focus {
background: #fff;
border:0px solid #555;
box-shadow: 0 0 3px #aaa;
padding-right:70px;
}
.usually input:focus:invalid,
.usually textarea:focus:invalid {
background: #fff url(images/warn.png)no-repeat 98% center;
box-shadow: 0 0 5px #d45252;
border-color: #b03535
}
.usually input:required:valid,
.usually textarea:required:valid{
background: #fff url(images/right.png) no-repeat 98% center;
box-shadow: 0 0 5px #5cd053;
border-color: #28921f;
}
#foot{
padding: 0 40px;
margin: 10px 0 0 120px;
}
</style>
</head>
<body>
<div>
<form class="a" action="#" method="post" name="a">
<ul>
<li class="usually">
<h2>员工信息表</h2>
</li>
<li class="usually">
<span>用户登录名:</span>
<input type="email" name="email" placeholder= "javin@example.com" required />
</li>
<li class="usually">
<span>真实姓名:</span>
<input type="text" id="name" name="name" οnkeyup="this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'')" required/ >
</li>
<li class="usually">
<span>真实年龄:</span>
<input type="number" name="age" min="0" max="200" required/>
</li>
<li class="usually">
<span>出生年月:</span>
<input type="var" name="born" required/>
</li>
<li class="usually">
<span>电子邮箱:</span>
<input type="email" name="password" placeholder= "javin@example.com" required />
</li>
<li class="usually">
<span >身份证号:</span>
<input type="number" nemr="idname" required />
</li>
<li class="special">
<span >幸运颜色:</span>
<input type="color" style="width: 100px;">
</li>
<input type="submit" value="提交" id="foot">
<input type="reset" value="重置" id="foot">
</ul>
</form>
</div>
</body>
</html>
h5
最新推荐文章于 2023-12-29 11:08:35 发布