<html>
<head>
<meta charset="UTF-8">
<title>中国铁路12306</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
li{
list-style-type: none;
}
.box
{
width: 1530px;
height: 1000px;
/* border: 1px red solid; */
position: relative;
}
.header>.first
{
display: inline-block;
width:400px ;
height: 100px;
position: relative;
right: -150px;
padding-top: 10px;
padding-bottom: 10px;
}
.header
{
position: relative;
}
.header>input
{
position: absolute;
left: 646px;
bottom: 50px;
}
.header>img.second
{
display: inline-block;
height: 34px;
width: 34px;
position: relative;
right: -662.1px;
top: -45px;
}
#screen>img
{
display: inline-block;
width: 1630px;
height: 300px;
}
#tv
{
width: 3120px;
height: 300px;
position: relative;
left: -14px;
/* border: 1px blue solid; */
}
#screen {
width: 3120px;
height: 300px;
animation: 3s dfdfd infinite;
position: relative;
}
#screen img {
float: left;
margin-left: -8px;
display: inline-block;
width: 1560px;
height: 300px;
}
#tv {
width: 1540px;
height: 300px;
overflow: hidden;
}
@keyframes dfdfd {
/* 0%{} */
25% {
transform: translateX(0px)
}
25.1015% {
transform: translateX(-930px)
}
50% {
transform: translateX(-90px)
}
50.1015% {
transform: translateX(-1560px)
}
75% {
transform: translateX(-1560px)
}
75.1015% {
transform: translateX(-2190px)
}
}
.we
{
width: 130px;
height: 300px;
line-height: 30px;
position: relative;
top: -300px;
right: -120px;
border: 1px grey solid;
text-align: center;
background-color: rgb(95,119,180,0.5);
}
.we>ul
{
display: block;
height: 30px;
line-height: 30px;
/* padding-top: 20px; */
color: #BCCFE4;
}
.we>ul>img
{
display: inline-block;
width: 30px;
height: 30px;
background-color: rgb(95,119,180,0.5);
}
.foot
{
display: inline-block;
height: 260px;
width: 100%;
/* border: #0000FF 1px solid; */
position: absolute;
top: 470px;
}
.car
{
width: 300px;
height:150px ;
background-color: rgb(245,245,245,0.9);
vertical-align: middle;
text-align: center;
padding-top: 100px;
}
.car>span
{
position: relative;
bottom: -22px;
left: -85px;
}
.take
{
width: 300px;
height:150px ;
background-color: rgb(245,245,245,0.9);
vertical-align: middle;
text-align: center;
padding-top: 100px;
}
.take>span
{
position: relative;
bottom: -22px;
left: -85px;
}
.food
{
width: 300px;
height:150px ;
background-color: rgb(245,245,245,0.9);
vertical-align: middle;
text-align: center;
padding-top: 100px;
}
.food>span
{
position: relative;
bottom: -22px;
left: -85px;
}
.xin
{
width: 300px;
height:150px ;
background-color: rgb(245,245,245,0.9);
vertical-align: middle;
text-align: center;
padding-top: 100px;
}
.xin>span
{
position: relative;
bottom: -22px;
left: -85px;
}
.foot div
{
float: left;
padding-left: 80px;
}
.foot div:hover
{
animation: changeColor 2s linear both;
}
轮播
@keyframes changeColor {
0% {
background-color:rgb(245,245,245,0.9) ;
}
50% {
background-color: ; white;
}
100% {
background-color:royalblue;
}
}
.last
{
width: 1000px;
height: 220px;
}
.last>.p
{
width:400px ;
height: 68px;
/* position: relative;
top: -12px;
right: -10px; */
}
.last>img
{
background-color: aliceblue;
border: 1px grey solid;
text-align: center;
margin-left: 20px;
margin-top: 10px;
}
.last2 img
{
display: inline-block;
width: 120px;
height: 120px;
}
.last2
{
width: 600px;
height: 230px;
/* border: 1px blue solid; */
/* float: right; */
position: relative;
right: -860px;
top: -210px;
line-height: 50px;
text-align: center;
/* text-indent: 1em; */
}
h3
{
font-size: 15px;
font-weight: 700;
text-indent: 1em;
}
</style>
</head>
<body>
<div class="box">
<!-- 第一个div -->
<div class="header">
<img class="first" src="css/img/logo@2x.png" >
<input type="text" placeholder="搜索车票/餐饮/常旅客/相关规章"
style="width:420px;height: 34px;float: right;"/>
<img class="second" src="css/img/搜索.png" />
</div>
<!--第二个div区域-->
<div style="width: 1530px;height: 40px;background-color: #3B99FC;">
<div style="width:1200px;height: 40px;background-color: #3B99FC;;margin-left: 85px;margin: 0px auto;">
<div style="width: 12.5%;height:40px;background-color: #3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 60px;">
首页
</font>
</div>
<div style="width: 12.5%;height:40px;background-color: #3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
车票
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;height:40px;background-color: #3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
团购服务
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;height:40px;background-color: #2676E3;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
会员服务
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;height:40px;background-color: #3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
站车服务
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;height:40px;background-color:#3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
商旅服务
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;background-color:#3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
出行指南
</font>
<img src="img/act2.jpg" style="margin-left: 57px;position: relative;top:10px" />
</div>
<div style="width: 12.5%;background-color:#3B99FC;float: left;">
<font style="font-family:'微软雅黑';font-size:15px;color: white;position: relative;top:10px;left: 50px;">
信息查询
</font>
<div style="float: right;position: relative;top:-100px;right: 60px;">
<ul style="list-style-type: none;">
<li style="float: left;"><font style="font-family: '微软雅黑';font-size: 10px;color: #3B9DFC;">我的12306</font></li>
<li style="float: left;margin-left: 10px;"><a href="#" style="font-family:'微软雅黑';font-size:10px;color:black;text-decoration: none;">登录</a></li>
<li style="float: left;margin-left: 10px;"><a href="#" style="font-family:'微软雅黑';font-size:10px;color:black;text-decoration: none;">注册</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="tv">
<div id="screen">
<img src="css/img/b02.jpg" >
<img src="css/img/b01.jpg">
</div>
</div >
<div class="we">
<ul>
<img src="css/img/皇冠.png"/>
<li>会员管理</li>
<img src="css/img/7.png">
<li>积分账户</li>
<img src="css/img/01.png" />
<li>积分兑换</li>
<img src="css/img/4.png">
<li>会员专享</li>
<img src="css/img/2.png"/>
<li>帮助中心</li>
</ul>
</div>
<div class="foot">
<div class="car">
<img src="css/img/3.png"/>
<span class="1" >车票预定</span>
</div>
<div class="take">
<img src="css/img/12.png" />
<span class="2" >接续换乘</span>
</div>
<div class="food">
<img src="css/img/16.png" />
<span class="3" >餐饮.特产</span>
</div>
<div class="xin">
<img src="css/img/500.png" />
<span class="4" >温馨服务</span>
</div>
</div>
<div class="last">
<h3>友情链接</h3>
<img class="p" src="css/img/link01.png" />
<img src="css/img/link02.png" />
<img src="css/img/link03.png" />
<img src="css/img/link04.png" />
</div>
<div class="last2">
中国铁路官方微信
中国铁路官方微博
12306公众号
铁路12306
<span> </span>
<img src="./css/img/zgtlwx.png" />
<img src="css/img/zgtlwb.png" />
<img class="zx" src="css/img/public.png" />
<img class="as" src="css/img/download.png"/>
</div>
</div>
</div>