简单的界面

<!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">
            <!--logo部分-->
            <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">&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;
    /*height: 60px;*/
    /*line-height: 60px;*/
}

.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;
}
/*.recomment ul:not(:last-child){*/
    /*margin-right: 20px !important;*/
/*}*/
.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{
    /*css3过渡 */
    transition: all 1s;
}
.item-small img:hover{
    /*css3新增2d转换:缩放*/
    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;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值