【2016.12.09】博雅互动网页布局
【2016.12.09】博雅互动网页布局
丨Rainbow丨 发表于10个月前
【2016.12.09】博雅互动网页布局
  • 发表于 10个月前
  • 阅读 9
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 十分钟定制你的第一个小程序>>>   

1.html代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博雅互动主页</title>
    <link href="libs/css/index.css" rel="stylesheet">
</head>
<script src="libs/js/jquery3_1_1.min.js"></script>
<script src="libs/js/index.js"></script>
<body>

<!--header start-->
<div class="header" id="home">
    <div class="container">
        <div class="logo"><a href="#"></a></div>
        <div class="nav ofHidden">
            <ul>
                <li><a href="#" class="selected">首页</a></li>
                <li><a href="#">博雅游戏</a></li>
                <li><a href="#">博雅新闻</a></li>
                <li><a href="#">关于我们</a></li>
                <li><a href="#">客服中心</a></li>
                <li class="last"><a href="#">投资者关系</a></li>
            </ul>
        </div>
        <div class="joinUs_box">
            <a href="#"><img src="images/jrwm.png" alt=""></a>
        </div>
    </div>
</div>
<!--header end-->
<div class="banner">
    <div class="circle">
        <ol>
            <li><a href="#" class="selected"></a></li>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
            <li style="margin-right:0;"><a href="#"></a></li>
        </ol>
    </div>
</div>
<!--隔墙-->
<div class="cl"></div>
<div class="content container">
    <div class="product">
        <ul>
            <li><a href="#"><img src="images/pro1.jpg" alt=""><h1>BPT宣传片</h1><p><span>点击播放</span><img src="images/arrow.png" alt=""></p></a></li>
            <li><a href="#"><img src="images/pro2.jpg" alt=""><h1>博雅互动宣传视频</h1><p><span>点击播放</span><img src="images/arrow.png" alt=""></p></a></li>
            <li><a href="#"><img src="images/pro3.jpg" alt=""><h1>斗地主</h1><p><span>点击播放</span><img src="images/arrow.png" alt=""></p></a></li>
            <li class="noMagin"><a href="#"><img src="images/pro4.jpg" alt=""><h1>德州扑克</h1><p><span>点击播放</span><img src="images/arrow.png" alt=""></p></a></li>
        </ul>
    </div>
    <div class="news2ndInvite ofHidden">
        <!--左侧新闻列表 start-->
        <div class="news">
            <div class="newsTitle">
                    <a href="#"><span class="moreText">MORE</span><span class="rightTop">+</span></a>
            </div>
            <!--news list start-->
            <div class="newsList">
                <ul>
                    <li><span>⊙</span><a href="#">博雅互动公布2016第三季度业绩 公司收益稳步增长</a><span class="newsDate">11 / 29</span></li>
                    <li><span>⊙</span><a href="#">博雅互动牵手“海天盛筵”展会,打造高端棋牌竞技赛事</a><span class="newsDate">11 / 29</span></li>
                    <li><span>⊙</span><a href="#">2016博雅国际扑克大赛(BPT)决赛圆满落幕,香港选手夺冠</a><span class="newsDate">11 / 29</span></li>
                    <li><span>⊙</span><a href="#">2016 BPT全球总决赛开赛在即  国内外300名选手蓄势待发</a><span class="newsDate">11 / 29</span></li>
                </ul>
            </div>
            <!--news list end-->
        </div>
        <!--左侧新闻列表 end-->
        <!--右侧招聘 start-->
        <div class="invite">
            <div class="title">
                <div class="text">
                    <h1 class="zczp">专场招聘</h1>
                    <h1 class="boyjobs">BOYAA JOBS </h1>
                </div>
                <div class="more"><a href="#"><span class="moreText">MORE</span><span class="rightTop">+</span></a></div>
            </div>
            <!--招聘内容 start-->
            <div class="inviteContent ofHidden">
                <h3>专场招聘岗位:</h3>
                <ul>
                    <li><a href="#">PHP开发工程师</a></li>
                    <li><a href="#">C++开发工程师</a></li>
                    <li><a href="#">WEB前端开发工程师</a></li>
                    <li><a href="#">大数据开发工程师</a></li>
                </ul>
            </div>
            <!--招聘内容 end-->
        </div>
        <!--右侧招聘 end-->
    </div>
</div>
<!--隔墙-->
<div class="cl"></div>
<div class="footer">
    <div class="container">
        <div class="copyRight">
            <div style="float: right;">
                <img src="images/govIcon.gif" alt="">
                <p>Copyright © 2004 - 2016 博雅互动(Boyaa Interactive) 粤ICP备05062536号 网络文化经营许可证:粤网文[2015]1991-405号 增值电信业务经营许可证:粤B2-20110513&nbsp;&nbsp;</p>
            </div>
        </div>
        <div class="cl"></div>
        <p>网站地图 | 免责声明</p>
    </div>
</div>

<div class="returnTop">
    <a href="#home"><span></span>TOP</a>
</div>
</body>
</html>

2.CSS

*{
    padding: 0;
    margin:0;
    list-style: none;
}

body{
    font-family: 'Arial',"Microsoft YaHei UI";
}

.ofHidden{
    overflow: hidden;
    _zoom:1
}
.cl{
    clear: both;
}

.header{
    height: 58px;
    background-color: #191D3A;
}

.container{
    width: 1000px;
    margin:0 auto;
}

.header .logo{
    float: left;
    width: 224px;
    height: 58px;
    background: url("../../images/logo.png") no-repeat center top;
}

.header .logo a{
    display: block;
    width: 100%;
    height: 100%;
    color: transparent;
}

.header .nav{
    float: left;
    width: 618px;
}

.header .nav ul{
    list-style: none;
}

.header .nav ul li{
    float: left;
    width: 101px;
    border-left: 1px solid #252947;
    text-align: center;
}
.header .nav ul li.last{
    border-right: 1px solid #252947;
}


.header .nav ul li a{
    display: block;
    width: 100%;
    line-height: 58px;
    color: #c2c2c2;
    text-decoration: none;
    font-size: 14px;
}

.header .nav ul li a:hover,.header .nav ul li a.selected{
    background-color: #252947;
    color: white;
}

.header .joinUs_box{
    float: left;
    padding-left: 48px;
    padding-top: 12px;
}

.banner{
    position: relative;
    height: 465px;
    background:#FBB519 url("../../images/banner.jpg") no-repeat center top;
}

.banner .circle{
    position: absolute;
    bottom: 12px;
    left: 50%;
    margin-left:-70px;
}

.banner .circle li{
    float: left;
    margin-right:10px;
}

.banner .circle li a{
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #cfcfcf;
}
.banner .circle li a:hover,.banner .circle li a.selected{
    background-color: #30BC73;
}

.content{
    padding-top: 50px;
}

.content .product{
    height: 229px;
    border-bottom: 1px solid #DBE1E7;
}

.content .product ul{
    list-style: none;
}

.content .product li{
    float: left;
    margin-right: 42px;
}

.content .product li.noMagin{
    margin-right:0;
}

.content .product li a{
    display: block;
    width: 218px;
    text-decoration: none;
    text-align: center;
    color: black;
    padding-bottom:10px;
    border-radius: 5px;
}

.content .product li a:hover{
    color: white;
    background-color: #30BC73;
}

.content .product li a img{
    width: 100%;
}

.content .product li a h1{
    margin: 5px 0 10px 0;
    font-size: 16px;
}

.content .product li a p{
    font-size: 14px;
    color: #30BC73;
}
.content .product li a p img{
    margin-left:2px;
    width: auto;
}
.content .news2ndInvite{
    padding:53px 0;
}

.content .news2ndInvite .news{
    float: left;
}

.content .news2ndInvite .news .newsTitle{
    width: 282px;
    height: 69px;
    padding-top:40px;
    padding-left: 218px;
    border-bottom:1px solid #DBE1E7;
    background: url("../../images/bynewsbg.jpg") no-repeat right top;
}

.content .news2ndInvite .news .newsTitle a{
    display: block;
    overflow: hidden;
    width: 60px;
    line-height: 22px;
    border-radius: 5px;
    text-align: center;
    padding: 2px;
    border: 1px solid #30BC73;
    color: #30BC73;
}

.content .news2ndInvite .news .newsTitle a:hover{
    background: #30BC73;
    color: white;
}

.content .news2ndInvite .news .newsTitle a span.moreText{
    float: left;
    display: block;
    font-size: 14px;
    margin-left:3px;
}

/*右上角的span*/
.content .news2ndInvite .news .newsTitle a span.rightTop{
    float: left;
    display: block;
    font-size: 14px;
    margin-top:-8px;
}

.content .news .newsList ul{
    padding:0 20px;
    font-size: 14px;
}
.content .news .newsList ul li{
    width: 460px;
    height: 49px;
    line-height: 49px;
    border-bottom:1px solid #DBE1E7;
}
.content .news .newsList ul li a{
    text-decoration: none;
    color: black;
}
.content .news .newsList ul li a:hover{
    text-decoration: none;
    color: #30BC73;
}

.content .news .newsList ul li span.newsDate{
    float: right;
}

.content .news2ndInvite .invite{
    float: left;
    width: 500px;
    height: 270px;
    padding-top:40px;
    background: url("../../images/byhrbg3.jpg") no-repeat;
    color: white;
}

.content .news2ndInvite .invite .title{
    width: 204px;
    height: 48px;
    padding-left:80px;
}
.content .news2ndInvite .invite .title .text{
    float: left;
    width: 138px;
    height: 100%;
}

.content .news2ndInvite .invite .title h1.zczp{
    font-size: 28px;
}
.content .news2ndInvite .invite .title h1.boyjobs{
    font-size: 16px;
}

/*----------------------*/
.content .news2ndInvite .invite .more{
    float: right;
    width: 64px;
    height: 26px;
    border-radius: 5px;
    border:1px solid white;
}

.content .news2ndInvite .invite .more a{
    display: block;
    width: 60px;
    height: 100%;
    padding-left:4px;
    line-height: 26px;
    text-align: center;
    color: white;
}

.content .news2ndInvite .invite .more a:hover{
    background-color: white;
    color: #30BC73;
}

.content .news2ndInvite .invite .more a span.moreText{
    float: left;
    font-size: 14px;
}
.content .news2ndInvite .invite .more a span.rightTop{
    float: left;
    margin-top:-5px;
}

/*-----------招聘内容------------*/

.content .news2ndInvite .invite .inviteContent{
    padding:25px 175px 25px 25px;
}

.content .news2ndInvite .invite li{
    height: 37px;
    border-bottom:1px solid #d7d7d7;

}

.content .news2ndInvite .invite li a{
    display: block;
    text-decoration: none;
    color: white;
    line-height: 38px;
    font-size: 14px;
}

/*-----------footer------------*/
.footer{
    height: 80px;
    background-color: #191D3A;
    padding: 20px 0;
    color: #d9d9d9;
    font-size: 12px;
}

.footer .copyRight{
    float: right;
    width: 970px;
    height: 52px;
}
.footer .copyRight img{
    float: right;
    height: 50px;
    line-height: 52px;
}
.footer .copyRight p{
    float: right;
    line-height: 52px;
}



/*-------------回到顶部------------*/
.returnTop{
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 46px;
    height: 26px;
    padding: 2px;
}
.returnTop a{
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    color: #30BC73;
    background: #c6c6c6;
}

.returnTop a:hover{
    background-color: #30BC73;
    color: white;
}
.returnTop a span{
    display: block;
    float: left;
    width: 20%;
    height: 30px;
    margin-left: 3px;
    margin-right: -2px;
    background: url("../../images/arrow.png") no-repeat center center;
}
















3.JS

/**
 * Created by HeYongFeng on 2016/12/8.
 */
$(function () {
    $('.header .nav ul li a').click(function () {
        $('.header .nav ul li a').each(function () {
            $(this).removeClass('selected');
        });
        $(this).addClass('selected');
    });


    $('.product ul a').hover(function () {
        $(this).children('img').eq(0).css('opacity','0.8');
        $(this).children('p').eq(0).css('color','white');
    },function () {
        $(this).children('img').eq(0).css('opacity','1');
        $(this).children('p').eq(0).css('color','#30BC73');
    });

    console.log(new Date().toLocaleString());
});
共有 人打赏支持
粉丝 3
博文 58
码字总数 19449
×
丨Rainbow丨
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: