码迷,mamicode.com
首页 > Web开发 > 详细

注册页面css版本

时间:2019-08-19 23:13:19      阅读:38      评论:0      收藏:0      [点我收藏+]

标签:hda   date   class   use   size   post   name   register   doctype   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>注册页面</title>
<style>
*{
margin: 0px;
padding: 0px;
}

body{
background: url("img/register_bg.png") no-repeat;
}

.rg_layout{
width:900px;
height:500px;
border:#EEEEEE solid 10px;
background: aliceblue;
margin: auto;
margin-top: 135px;
}

.rg_left{
/* border: red solid 1px;*/
float:left;
margin: 15px;
}

.rg_left > p:first-child {
color: #FFD026;
font-size:20px;
}

.rg_left > p:last-child{
color: #A6A6A6;
font-size: 20px;
}
.rg_center{
/* border: red solid 1px;*/
float:left;
}
.rg_right{
/* border: red solid 1px;*/
float:right;
margin: 15px;
}

.rg_right > p {
font-size:15px;
}

.rg_right p a {
color: pink;
}

.td_left{
width: 100px;
text-align: right;
height: 45px;
color: #A6A6A6;
}

.td_right{
padding-left: 50px;
}

#username,#password,#email,#name,#tel,#birthday,#checkcode{
width: 251px;
height: 30px;
border:1px solid #A6A6A6;

padding-left: 15px;
border-radius: 5px;

}

#checkcode{
width: 110px;
}

#img_check{
vertical-align: middle;
height:30px
}

#btn_submit{
width: 150px;
height: 30px;
background-color: orange;
border: 1px solid orange;
}

</style>


</head>
<body>
<div class="rg_layout">
<div class="rg_left">
<p>新用户注册</p>
<p>USER REGISTER</p>
</div>

<div class="rg_center">
<div class="rg_form">
<form action="#" method="post">
<table >
<tr>
<td class="td_left">
<label for="username">用户名:</label>
</td>
<td class="td_right">
<input type="text" name="username" id ="username" placeholder="请输入用户名">
</td>
</tr>
<tr>
<td class="td_left">
<label for="password">密码:</label>
</td>
<td class="td_right">
<input type="password" name="password" id ="password" placeholder="请输入密码">
</td>
</tr>
<tr>
<td class="td_left">
<label for="email">邮箱:</label>
</td>
<td class="td_right">
<input type="email" name="email" id ="email" placeholder="请输入邮箱">
</td>
</tr>
<tr>
<td class="td_left">
<label for="name">姓名:</label>
</td>
<td class="td_right">
<input type="name" name="name" id ="name" placeholder="请输入姓名">
</td>
</tr>

<tr>
<td class="td_left">
<label for="tel">手机号:</label>
</td>
<td class="td_right">
<input type="text" name="tel" id ="tel" placeholder="请输入手机号">
</td>
</tr>

<tr>
<td class="td_left">
<label >性别:</label>
</td>
<td class="td_right">
<input type="radio" name="gender" value="male" checked="checked">男
<input type="radio" name="gender" value="female" >女
</td>
</tr>

<tr>
<td class="td_left">
<label for="birthday">出生日期:</label>
</td>
<td class="td_right">
<input type="date" name="birthday" id="birthday"/>
</td>
</tr>

<tr>
<td class="td_left">
<label for="checkcode">
验证码:
</label>
</td >
<td class="td_right"><input type="text" name="checkcode" id="checkcode">
<img id="img_check" src="img/verify_code.jpg">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input id="btn_submit" type="submit" value="注册" />
</td>
</tr>
</table>
</form>
</div>

</div>

<div class="rg_right">
<p>已有账号?<a href="#">请登录</a></p>
</div>
</div>

</body>
</html>

注册页面css版本

标签:hda   date   class   use   size   post   name   register   doctype   

原文地址:https://www.cnblogs.com/newcityboy/p/11380205.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!