在千锋“逆战”学习第49天
每日一句:一个好汉三个帮,程序员同样如此。
今天学习了web和Tomcat的内容。
明天继续努力。
注册界面
<html>
<head>
<meta charset="UTF-8">
<title>css伸缩布局之注册案例</title>
<style>
html{
height: 100%;
}
body{
height: 100%;
margin: 0px;
background-image: url(../img/girl01.jpg);
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
#container{
display: flex;
background-color: white;
width: 800px;
height: 500px;
}
#left{
padding-top: 20px;
widows: 20%;
}
#left font{
font-size: 35px;
color: gray;
}
#left #f1{
color: orange;
}
#center{
width: 60%;
display: flex;
align-items: center;
justify-content: center;
}
#center input{
margin-top: 5px;
width: 200px;
height: 25px;
border: 1px solid gray;
border-radius:5px ;
}
#center #codes{
display: flex;
align-content: center;
}
#center #code{
width: 120px;
}
#center #img{
padding-top: 10px;
}
#center button{
width: 150px;
height: 30px;
margin-top: 20px;
background-color: limegreen;
}
#center button:hover{
background-color: darkgreen;
}
#right{
padding-top:20px ;
width: 20%;
}
#right a{
color: indianred;
text-decoration: none;
}
#right a:hover{
color: red;
}
</style>
</head>
<body>
<div id="container">
<div id="left">
<font id="f1">新用户注册</font><br />
<font id="f2">USER REGISTER</font>
</div>
<div id="center">
<form>
<table>
<tr>
<td>账户</td>
<td><input type="text" name="username" placeholder="请输入账户"/></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="password" placeholder="请输入密码" /></td>
</tr>
<tr>
<td>E mail</td>
<td><input type="text" name="email" placeholder="请输入邮箱"/></td>
</tr>
<tr>
<td>姓名</td>
<td><input type="text" name="name" placeholder="请输入姓名"/></td>
</tr>
<tr>
<td>手机号</td>
<td><input type="text" name="number" placeholder="请输入手机号" /></td>
</tr>
<tr>
<td>性别</td>
<td><input type="text" name="sex" placeholder="请输入性别" /></td>
</tr>
<tr>
<td>出生日期</td>
<td><input type="text" name="birthday" placeholder="yyyy年MM月dd日"/></td>
</tr>
<tr >
<td>验证码</td>
<td id="codes"><input id="code" type="text" name="code" placeholder="请输入验证码" />
<img id="img" src="../img/验证码.jpg" / width="50px" height="20px"></td>
</tr>
<tr>
<td colspan="2">
<button type="submit" >提交</button>
</td>
</tr>
</table>
</form>
</div>
<div id="right">
<font>已有账户?</font>
<a href="login.html">立即登录</a>
</div>
</div>
</body>
</html>