<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>桃视频首页</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="asserts/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
<header>
<div class="container nav-bar">
<div class="nav-logo">
<a href="/">
<img src="imgs/logo.png" alt="">
<span class="logo-text">桃视频</span>
</a>
</div>
<div class="nav-list">
<ul>
<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="">旅行</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="">财富</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="">拍客</a></li>
<li><a href="">万象</a></li>
<li><a href="">排行榜</a></li>
</ul>
</div>
<div class="nav-user">
<ul>
<li><a href="" class="btn-download">下载APP</a></li>
<li><a href="" class="btn-search"><i class="fa fa-search"></i></a></li>
<li><a href="" class="btn-login"><i class="fa fa-user"></i></a></li>
</ul>
</div>
</div>
</header>
<section>
<div class="container">
<div class="recomment">
<div class="item-big">
<a href="">
<video src="video/1.mp4" autoplay class="media-src"></video>
</a>
</div>
<ul class="item-small">
<li>
<a href=""><img src="imgs/2.jpg" class="media-src" alt=""></a>
<div class="video-intr">
<div class="video-author">
<span class="dj">独播</span>
<span class="author">softeem</span>
<span class="splite"></span>
<span class="fav-icon fa fa-heart"></span>
<span class="fav-count">2345</span>
</div>
<div class="video-title">
独家纪录波特兰抗议夜,抗议者:联邦执法者是暴力的始作俑者
</div>
</div>
</li>
<li>
<a href=""><img src="imgs/2.jpg" class="media-src" alt=""></a>
<div class="video-intr">
<div class="video-author">
<span class="dj">独播</span>
<span class="author">softeem</span>
<span class="splite"></span>
<span class="fav-icon fa fa-heart"></span>
<span class="fav-count">2345</span>
</div>
<div class="video-title">
独家纪录波特兰抗议夜,抗议者:联邦执法者是暴力的始作俑者
</div>
</div>
</li>
</ul>
<ul class="item-small">
<li>
<a href=""><img src="imgs/2.jpg" class="media-src" alt=""></a>
<div class="video-intr">
<div class="video-author">
<span class="dj">独播</span>
<span class="author">softeem</span>
<span class="splite"></span>
<span class="fav-icon fa fa-heart"></span>
<span class="fav-count">2345</span>
</div>
<div class="video-title">
独家纪录波特兰抗议夜,抗议者:联邦执法者是暴力的始作俑者
</div>
</div>
</li>
<li>
<a href=""><img src="imgs/2.jpg" class="media-src" alt=""></a>
<div class="video-intr">
<div class="video-author">
<span class="dj">独播</span>
<span class="author">softeem</span>
<span class="splite"></span>
<span class="fav-icon fa fa-heart"></span>
<span class="fav-count">2345</span>
</div>
<div class="video-title">
独家纪录波特兰抗议夜,抗议者:联邦执法者是暴力的始作俑者
</div>
</div>
</li>
</ul>
</div>
</div>
</section>
<footer>
<div class="copy">©软帝集团 版权所有</div>
</footer>
</body>
</html>
*{
margin: 0;
padding: 0;
outline: none;
box-sizing: border-box;
}
ul,
ol{
list-style: none;
}
a,
img,
span{
display: inline-block;
}
a{
text-decoration: none;
color: #333;
font-size: 0.8em;
}
header {
position: fixed;
top:0;
left:0;
z-index: 9990;
height: 60px;
width: 100%;
background: #222;
}
section{
position:relative;
top:60px;
height: 2000px;
}
footer{
position: relative;
margin:0 auto;
padding:30px 50px;
background: #222;
}
.copy{
text-align: center;
color:#fff;
}
.container{
position: relative;
margin:0 auto;
width: 70%;
max-width: 1280px;
min-width: 1000px;
}
.nav-bar{
height: 100%;
}
.nav-bar>div{
float:left;
height: 60px;
line-height: 60px;
}
.nav-logo,
.nav-user{
width:15%;
}
.nav-list{
width: 70%;
min-width: 850px;
}
.nav-logo img{
float: left;
height: 50px;
}
.logo-text{
margin:0 10px;
height: 60px;
line-height: 60px;
font-size: 1.5em;
color:#fff;
}
ul>li{
float: left;
margin:0 10px;
}
.nav-list a{
display: block;
color:#ccc;
}
.nav-list a:hover{
color:#ff6700 !important;
text-decoration: underline;
}
.nav-user a{
color:#fff;
}
.btn-download{
padding:4px 8px;
height: 20px;
line-height: 10px;
border:1px solid #fff;
border-radius: 10px;
}
.btn-download:hover{
background: #fff;
color: #222;
}
.nav-user li{
margin: 0 15px;
}
.recomment{
display: flex;
padding: 40px 0;
height: 600px;
}
.item-big{
margin-right: 20px;
flex:2;
background: #000;
}
.item-small{
flex:1;
}
.item-small li{
position: relative;
height: 250px;
width: 330px;
background: #FDDE01;
overflow: hidden;
}
.item-small li:nth-child(1){
margin-bottom: 20px;
}
.item-big>a,
.item-small>li>a{
display: block;
width: 100%;
height: 100%;
}
.media-src{
width: 100%;
height: 100%;
}
.item-small img{
transition: all 1s;
}
.item-small img:hover{
transform: scale(1.1);
}
.video-intr{
position: absolute;
bottom: 0;
padding:15px;
width: 100%;
background: rgba(0,0,0,0.5);
}
.video-author span{
margin:5px 10px 5px 0;
color:#fff;
font-size: 0.6em;
}
.video-author .dj{
padding:0 4px;
background: #5892d9;
border-radius: 2px;
}
.video-author .splite{
position: relative;
top:6px;
width: 1px;
height: 12px;
background: #fff;
}
.fav-icon:hover{
color:#f00;
}
.video-title{
color:#fff;
font-size: 18px;
}