标签:child font 页面 date add hello range 属性 url
<div style="color:red;">hello css</div>
<style>
div{
color:blue;
}
</style>
<div>hello css</div>
div{
color:green;
}
<link rel="stylesheet" href="css/a.css">
<div>hello css</div>
<div>hello css</div>
<style>
@import "css/a.css";
</style>
<a>
* 状态:
* link:初始化的状态
* visited:被访问过的状态
* active:正在访问状态
* hover:鼠标悬浮状态
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>注册</title>
<link rel="stylesheet" href="css/demo01.css">
</head>
<body>
<div class="register">
<div class="register-left">
<p id="welcome-zn">新用户注册</p>
<p id="welcome-en">USER REGISTER</p>
</div>
<div class="register-center">
<form action="#" method="get">
<table>
<tr>
<td class="td_left"><label for="username">用户名</label></td>
<td class="td_right"><input type="text" id="username" name="username" placeholder="请输入用户名"></td>
</tr>
<tr>
<td class="td_left"><label for="password">密码</label></td>
<td class="td_right"><input type="password" id="password" name="password" placeholder="请输入密码"></td>
</tr>
<tr>
<td class="td_left"><label for="email">Email</label></td>
<td class="td_right"><input type="email" id="email" name="email" placeholder="请输入邮箱"></td>
</tr>
<tr>
<td class="td_left"><label for="name">姓名</label></td>
<td class="td_right"><input type="text" id="name" name="name" placeholder="请输入姓名"></td>
</tr>
<tr>
<td class="td_left"><label for="phone">手机号</label></td>
<td class="td_right"><input type="text" id="phone" name="phone" placeholder="请输入手机号"></td>
</tr>
<tr>
<td class="td_left">性别</td>
<td class="td_right"><input type="radio" class="gender" name="gender" value="male"> <label>男</label>
<input type="radio" class="gender" name="gender" value="female"> <label>女</label></td>
</tr>
<tr>
<td class="td_left"><label for="date">出生日期</label></td>
<td class="td_right"><input type="date" id="date" name="birthday"></td>
</tr>
<tr>
<td class="td_left"><label for="checkcode">验证码</label></td>
<td class="td_right"><input type="text" id="checkcode" name="checkcode" placeholder="请输入验证码">
<img id=" img_check" src="image/" alt="验证码">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input id="button" type="submit" value="注册">
</td>
</tr>
</table>
</form>
</div>
<div class="register-right">
<p>
已有账号
<a href="#">立即登录</a>
</p>
</div>
</div>
</body>
</html>
body {
background: #b3e7ed;
background: url("../image/1.jpg") no-repeat center;
}
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.register {
width: 1000px;
height: 580px;
border: 6px solid rgba(119,142,255,0.46);
background-color: white;
box-sizing: border-box;
margin: auto;
margin-top: 180px;
}
.register-center{
/*border: 1px solid crimson;*/
float: left;
box-sizing: border-box;
margin-top: 90px;
margin-left: 80px;
width: 450px;
}
.td_left{
font-size: 19px;
color: #A6A6A6;
width: 80px;
height: 43px;
text-align: right;
}
.td_right{
font-size: 16px;
width: 20px;
padding-left:66px ;
}
#username,#password,#email,#name,#date,#phone{
width: 252px;
height: 26px;
border: 1px solid #A6A6A6;
border-radius: 5px ;
padding-left: 5px;
}
#checkcode{
width: 130px;
height: 26px;
border: 1px solid #A6A6A6;
border-radius: 5px ;
padding-left: 5px;
}
#button{
margin-top: 10px;
width: 150px;
height: 40px;
background-color: orange;
font-weight: bold;
font-size: 18px;
border: 1px solid orange;
color: black;
}
#img_check{
height: 26px;
vertical-align: middle;
}
.register-left{
/*border: 1px solid crimson;*/
margin: 30px;
float: left;
}
.register-right{
/*border: 1px solid crimson;*/
margin-top: 520px;
margin-left: 20px;
float: right;
width: 180px;
}
#welcome-zn{
color: orange;
font-size: 20px;
}
#welcome-en{
color: #A6A6A6;
font-size: 23px ;
}
.register-right p:first-child{
color: #A6A6A6;
font-size: 16px;
}
.register-right p a:hover{
color: coral;
}
.register-right p a:link{
color: #A6A6A6;
}
.register-right p a:visited{
color: cornflowerblue;
}
标签:child font 页面 date add hello range 属性 url
原文地址:https://www.cnblogs.com/huxiaobai/p/11918190.html