* {
margin: 0px;
padding: 0px;
background-color: wheat;
}
.table {
width: 200px;
height: 30%;
margin: auto;
margin-top: 50%; //margin-top的值是外div高度减去内div高度再除以2
}
input {
float: left;
height: 20px;
border: 1px solid #ccc;
}
.texter {
border-right: none;
}
.clearer {
float: left;
width: 20px;
border: none;
border-top: 1px solid #ccc;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background: transparent;
}
var passwd = document.getElementById("passwd");
var repasswd = document.getElementById("repasswd");
var name = document.getElementById("userName");
function onclickSubmit() {
if(name == null) {
alert("name is null!");
} else if(passwd == null) {
alert("password is null!");
} else if(passwd != repasswd) {
alert("password is error!");
}
}
UserName | |
sex | femail |
PassWd | |
RePanit | |
请选择您要的数值[10,100]
请选择颜色