【2016.12.09】博雅互动网页布局

【2016.12.09】博雅互动网页布局_第1张图片

1.html代码




    
    博雅互动主页
    










TOP

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());
});

转载于:https://my.oschina.net/YongfengHe/blog/803118

你可能感兴趣的:(【2016.12.09】博雅互动网页布局)