《HTML》
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>千年之恋</title>
<link rel="stylesheet" href="css/style6.css" type="text/css"/>
</head>
<body>
<div id="header">
<img src="img/logo.jpg" />
</div>
<div id="nav_bg">
<ul class="nav">
<li><a href="#">首页</a></li>
<li><a href="#">会员</a></li>
<li><a href="#">活动</a></li>
<li><a href="#">直播</a></li>
<li><a href="#">视频</a></li>
<li><a href="#" class="bg">注册</a></li>
</ul>
</div>
<div id="banner">
<img src="img/banner.jpg" />
</div>
<div id="content">
<h2 class="step">注册信息:</h2>
<form action="#" method="post" class="one">
<h3>您的账号信息:</h3>
<table class="content">
<tr>
<td class="left">
注册方式:
</td>
<td>
<label for="one"><input type="radio" name="sex"
id="one" />E-mail注册</label>
<label for="two"><input type="radio" name="sex" id="two" />手机号码注册</label>
</td>
</tr>
<tr>
<td class="left">
注册邮箱:
</td>
<td>
<input type="text" class="right" />
</td>
</tr>
<tr>
<td class="left">
注册手机:
</td>
<td>
<input type="text" class="right" />
</td>
</tr>
<tr>
<td class="left">
登录密码:
</td>
<td>
<input type="password" maxlength="8" class="right" />
</td>
</tr>
<tr>
<td class="left">
昵称:
</td>
<td>
<input type="text" class="right" />
</td>
</tr>
</table>
<h3>您的个人信息:</h3>
<table class="content">
<tr>
<td class="left">
性别:
</td>
<td>
<label for="boy"><input type="radio" name="sex" id="boy" />男</label>
<label for="girl"><input type="radio" name="sex" id="girl" />女</label>
</td>
</tr>
<tr>
<td class="left">
学历:
</td>
<td>
<select>
<option>-请选择-</option>
<option>中职/高中</option>
<option>专科/本科</option>
<option>硕士研究生</option>
<option>博士研究生</option>
</select>
</td>
</tr>
<tr>
<td class="left">
所在城市:
</td>
<td>
<select>
<option>-请选择-</option>
<option selected="selected">北京</option>
<option>上海</option>
<option>广州</option>
<option>深圳</option>
</select>
</td>
</tr>
<tr>
<td class="left">
兴趣爱好:
</td>
<td>
<input type="checkbox" />足球
<input type="checkbox" />篮球
<input type="checkbox" />游泳
<input type="checkbox" />唱歌
<input type="checkbox" />跑步
<input type="checkbox" />瑜伽
</td>
</tr>
<tr>
<td class="left">
自我介绍:
</td>
<td>
<textarea cols="60" rows="8">评论的时候,请遵纪守法并注意语言文明,多给文档分享人一些支持。</textarea>
</td>
</tr>
<!-- <tr>
<td colspan="2">
<input type="button" class="btn" />
</td> -->
<!-- </tr> -->
</table>
</form>
</div>
<div id="footer">
<p>Copyright 2020-2030 QIANNIANZHILIANcom,All rights reserved.<br />2020-2030,版权所有
千年之恋 85CP备3333</p >
</div>
</body>
</html>
《css》
*{
padding: 0;
margin: 0;
}
@font-face{
font-family: fresh;
src: url("../fonts/iconfont.ttf");
}
#head{
width: 100%;
height: 50px;
background-color: black;
color: white;
display: flex;
justify-content:space-around;
line-height: 50px;
}
ul{
display: flex;
}
li{
list-style: none;
margin-left: 50px;
}
#header{
width: 100%;
height: 60px;
background-color: grey;
display: flex;
justify-content: space-around;
line-height: 60px;
}
ol{
font-family: fresh;
display: flex;
}
#header img{
margin-top: 17px;
}
ol li{
color: #333;
width: 32px;
height: 32px;
line-height: 32px;
box-shadow: 0 0 0 1px #333 inset;
margin: 10px 0 0 30px;
text-align: center;
border-radius: 16px;
transition: box-shadow 0.5s ease 0s;
}
ol li:hover{
box-shadow: 0 0 0 16px #fff inset;
color: #333;
}
#tp{
background: url("../img/banner01.jpg") -230px;
height: 720px;
}
.zi{
margin: auto;
width: 600px;
color: white;
text-align: center;
padding-top: 350px;
}
.zi p{
margin-top: 30px;
}
.zi .pic{
margin-top: 100px;
width: 40px;
height: 40px;
box-shadow: 0 0 0 1px #fff inset;
border-radius: 20px;
/* padding-top: 10px; */
transition:all 0.8s ease-in 0s;
transform: translate(-50%,0);
opacity: 0;
}
body:hover .pic{
opacity: 1;
margin-top: 150px;
}
.zi .pic:hover{
box-shadow: 0 0 0 20px #2fade7 inset;
}
.list li{
width: 28px;
height: 1px;
border: 1px solid #d6d6d6;
margin-left: 120px;
}
.xi{
background-color: #f90;
}
.body{
background-color: #333;
}
.bx,.bx2{
width: 1200px;
height: 845px;
margin: auto;
border-bottom: 2px solid gray;
}
h2{
line-height: 100px;
text-align: center;
font-size: 30px;
color: white;
}
video{
width: 792px;
height: 436px;
overflow: hidden;
float: left;
/* margin-top: -55px; */
margin-top: 0px;
background-color: #000;
}
.sh img{
width: 388px;
height: 218px;
overflow: hidden;
float:right;
margin-right: 12px;
}
.bx .sh img{
transition: all 0.5s ease-in 0s;
}
.sh img:hover{
transform: scale(1.1,1.1);
}
.tall{
position: relative;
float: left;
margin:5px 5px 0 0;
}
.jies{
position: absolute;
top: 0;
color: black;
height: 343px;
width: 280px;
text-align: center;
/* padding-top: 80px; */
background-color: #eeeeee;
opacity: 0;
/* line-height: 343px; */
transition: all 0.8s linear;
}
.tall:hover .jies{
opacity: 0.8;
margin-left: 312px;
}
.jies img{
margin-top: 80px;
}
.jies span{
display: block;
width: 75px;
height: 30px;
margin: auto;
background-color: #2fade7;
line-height: 30px;
border-radius: 5px;
color: #fff;
}
.jies p{
margin-bottom: 25px;
}
#foot a{
background: url("../img/sanjiao.png") no-repeat center;
width: 100%;
display: block;
text-align: center;
margin: auto;
text-decoration: none;
color: #fff;
font-size: 20px;
background-color: #333;
padding-top: 10px;
height: px;
padding: 0;
margin: 0;
}
.di{
background-color: #000;
text-align: center;
width: 100%;
height: 60px;
color: #fff;
line-height: 60px;
}