2021年08月02日从15:30-22:00,耗时6.5小时,中间休息1.5h。从无到有,完成简单的仿雅博互助官方页面。期间也有些略微生疏的地方,偶尔需要查阅过往学习笔记和百度娘娘。希望自己越来越好,大家也是一样。

        呜呜呜我的博客上传不了图片。

仿雅博互助页面

/*样式重置*/
/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/*基本样式*/

/* 定义版心类 */
.container{
    width: 1000px;
    margin:0 auto;
}
/* 去除图片底部缝隙 */
img{
    vertical-align: bottom;
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
body{
    font-size:12px;
    font-family:"微软雅黑";
    /* 最小宽度 */
    min-width: 1000px;
}
/* 消除浮动 */
.clearfix{
    *zoom:1;
}
.clearfix::after{
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}
/* 左浮动类 */
.fl{
    float: left;
}
/* 右浮动类 */
.fr{
    float: right;
}
/*所有样式*/
/* 导航栏 */
.header-{
    height: 60px;
    background-color: #191d3a;
}
.logo{
    width: 225px;
}
.logo a{
    display: block;
    width: 157px;
    height: 35px;
    margin: 10px 0px 0px 20px;
}
.header- ul li{
    display: inline-block;
    width: 87px;
    height: 58px;
    text-align: center;
    line-height: 58px;
}
.header- ul li a{
    display: block;
    width: 100%;
    height: 100%;
    color: #81848a;
    border-right: 1px solid #252947;
}
.header- ul li:nth-of-type(1) a{
    background-color: #252947;
}
.header- ul li:nth-of-type(7){
    width: 98px;
    height: 32px;
    line-height: 32px;
    margin-left: 10px;
}
.header- ul li:nth-of-type(7) a:hover{
    background-color: #2ba364;
}
.header- ul li:nth-of-type(7) a{
    color: white;
    border: 1px solid #3aca7a;
    border-radius: 5px;
    background-color: #38b774;
}
.header- ul li a:hover{
    color: white;
    background-color: #252947;
}
.chinese a{
    height: 58px;
    line-height: 58px;
    margin-right: 10px;
    color: #81848a;
}
.chinese span:nth-of-type(1) a{
    color: #38b774;
}


/* 图片变化栏 */
.nav-{
    height: 460px;
    width: 100%;
    background: url(./images/banner.jpg) center center / auto 100% no-repeat;
}
.banxin{
    position: relative;
}
.download{
    width: 460px;
    height: 195px;
    /* background-color: pink; */
    padding: 158px 0px 0px 540px;
    font-size: 14px;
}
.game{
    margin-top: 30px;
}
.game1{
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background-image: url(./images/download.png);
    background-size: 18px;
}
.game2{
    font-size: 18px;
    font-weight: 600;
}
.download ul{
    margin-top: 20px;
    border-radius: 5px;
    position: relative;

}
.download ul li{
    display: inline-block;
    width: 83px;
    height: 35px;
    line-height: 35px;
    padding-top: 71px;
    text-align: center;
    background-size: 300px;
    background-repeat: no-repeat;
    background-color: #edf1fb;
    margin-right: 1px;

}
.download ul li:nth-of-type(1){
    background-image: url(./images/pad.png);
    background-position: 27px -195px;
}
.download ul li:nth-of-type(2){
    background-image: url(./images/pad.png);
    background-position: 25px 15px;
}
.download ul li:nth-of-type(3){
    background-image: url(./images/pad.png);
    background-position: 19px -86px;
}
.download ul li:nth-of-type(4){
    width: 111px;
    height: 93px;
    padding: 13px 0px 0px 0px;
    position: absolute;
}
.download ul li:nth-of-type(4):hover{
    background-color: #edf1fb;
}
.download ul li:hover{
    background-color: white;
}

/* 在线游戏 */
.on-line{
    width: 115px;
    height: 80px;
    background-color: transparent;
    position: absolute;
    top: 80px;
    right: 0px;
    font-size: 16px;
    line-height: 40px;
}
.on-line dl{
    border-radius: 15px;
}
.on-line dl dd{
    display: inline-block;
    padding: 0px 13px;
    background-color: white;
    border-radius: 15px;
    display: none;
}
.on-line dl dd a{
    display: inline-block;
    width: 26px;
    height: 24px;
}
.one{
    width: 115px;
    height: 38px;
    background-image: url(./images/online.png);
}
.on-line dl dd a:nth-of-type(1){
    background-image: url(./images/online.png);
    background-position: 0px 24px;
}
.on-line dl dd a:nth-of-type(2){
    background-image: url(./images/online.png);
    background-position: -50px 24px;
}
.on-line dl dd a:nth-of-type(3){
    background-image: url(./images/online.png);
    background-position: -100px 24px;
}
.on-line dl:hover dd{
    display: block;
}
.on-line dl:hover{
    background-color: white;
}
.on-line dl:hover dt .one{
    background-image: url(./images/online.png);
    background-position: 115px 0;
}.banxin{
    position: relative;
}
.roll1 ul{
    position: absolute;
    bottom: -100px;
    left: 47%;
    width: 100px;
    height: 30px;
    /* background-color: #fff; */
    text-align: center;
    line-height: 30px;

}
.roll1 ul li{
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d79697;
    margin: 0px 5px;
}
.roll1 ul li:nth-of-type(3){
    background-color: white;
}
.roll1 ul li:hover{
    cursor: pointer;
    background-color: #fff;
}


/* 视频部分 */
.video-{
    margin-top: 50px;
    height: 230px;
    border-bottom: 1px solid #b5c0cb;
}
.video- ul li{
    display: inline-block;
    width: 220px;
    margin-right: 36px;
}
.video- ul li:nth-of-type(4){
    margin: 0px;
}
.video- ul li img{
    width: 220px;
}
.video- ul li a p:nth-of-type(1){
    margin-top: 10px;
    height: 20px;
    text-align: center;
    color: #000;
    font-weight: 600;
}
.video- ul li a p:nth-of-type(2){
    margin-top: 3px;
    padding-bottom: 5px;
    text-align: center;
    color: #129646;
}
.video- ul li:hover{
    background-color: #38b774;
}
.video- ul li:hover a p{
    color: white;
}
.you{
    font-size: 12px;
}
.video{
    position: relative;
}
.roll2 ul{
    position: absolute;
    bottom: -15px;
    left: 49%;
    width: 70px;
    height: 30px;
    background-color: #fff;
    text-align: center;
    line-height: 30px;

}
.roll2 ul li{
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2fbc71;
    margin: 0px 5px;
}
.roll2 ul li:nth-of-type(2){
    background-color: #b5c0cb;
}



/* 博雅新闻处 */
.bottom{
    margin-top: 50px;
    height: 365px;
    background-image: url(./images/indexmainbg.jpg);
}
.bottom-left{
    width: 500px;
    height: 310px;
    background-image: url(./images/bynewsbg.jpg);
    position: relative;
}
.bottom-left ul{
    padding-top: 120px;
}
.bottom-left ul li{
    height: 50px;
    margin: 0px 20px;
    font-size: 14px;
    line-height: 50px;
    border-bottom: 1px solid #e8e9ec;
}
.bottom-left ul li:hover{
    color: #40bf80;
    cursor: pointer;
}
.bottom-left ul li p:nth-of-type(1){
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 400px;
    float: left;
}
.bottom-left ul li p:nth-of-type(2){
    float: right;
    color: #c7d1df;
}
.more1{
    width: 65px;
    height: 28px;
    border: 1px solid #30bd71;
    color: #30bd71;
    line-height: 28px;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    top: 50px;
    left: 220px;
}
.more1:hover{
    color: white;
    background-color: #2fbc71;
}

.bottom-right{
    width: 500px;
    height: 310px;
    background-image: url(./images/byshzpbg.jpg);
    position: relative;
}

.job{
    margin: 45px 0px 0px 80px;
    font-size: 30px;
    font-weight: 700;
    color: white;
    line-height: 25px;
}
.bottom-right ul{
    margin-top: 25px;
    color: white;

}
.bottom-right ul p{
    margin-left: 20px;
    font-weight: 600;
}
.bottom-right ul li{
    font-size: 16px;
    width: 300px;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #61d698;
    margin: 0px 20px;
}
.more2{
    width: 65px;
    height: 28px;
    border: 1px solid white;
    color: white;
    line-height: 28px;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    top: 50px;
    left: 220px;
}
.more2:hover{
    background-color: white;
    color: #2fbc71;
}


/* 页脚 */
footer{
    height: 200px;
    background-color: #191d3a;
}
.footer-{
    padding: 40px 0px;
    /* margin-top: 40px; */
    color: #57596e;
    line-height: 45px;
    position: relative;
}
.hui{
    width: 40px;
    height: 55px;
    position: absolute;
    right: 205px;
    bottom: 30px;
    background-image: url(./images/govIcon.gif);
    background-size: 40px;
}


/* 侧边固定栏 */
.sidebar{
    position: fixed;
    top:50%;
    right:10px;
}
.sidebar-{
    width: 70px;
    height: 32px;
    background-color: #c7d6e5;
    border-radius: 5px;
    line-height: 32px;
    color: white;
    font-weight: 600;
    text-align: center;
}
.up{
    color: white;
    font-size: 12px;
}
.sidebar-:hover{
    background-color: #30bc73;
}
/*HTML样式*/
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="shortcut icon" href="favicon.ico" type="images/x-icon">
    <link rel="stylesheet" href="reset.css">
    <link rel="stylesheet" href="base.css">
    <link rel="stylesheet" href="all.css">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_2712794_1j5otaglxk9.css?spm=a313x.7781069.1998910419.40&file=font_2712794_1j5otaglxk9.css">
</head>
<body>
    <header>
        <div class="header-">
            <div class="container clearfix">
                <div class="logo fl">
                    <h1><a href="#"><img src="./images/logo.png" alt=""></a></h1>
                </div>
                <ul class="fl">
                    <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 class="chinese fr">
                    <span><a href="#">中文</a></span>
                    <span><a href="#">EN</a></span>
                </div>
            </div>
        </div>
    </header>
    <nav>
        <div class="nav-">
            <div class="container">
                <div class="banxin">
                    <div class="download">
                        <span>风靡国内外的斗地主游戏,超低流量,玩法多样,居家旅行必备良品</span>
                        <div class="game clearfix">
                            <div class="game1 fl"></div>
                            <div class="game2 fl">&nbsp;下载游戏:</div>
                        </div>
                        <ul>
                            <li>iPad</li><li>iPhone</li><li>Android</li><li><img src="./images/ewm.png" alt=""></li>
                        </ul>
                    </div>
                    <div class="on-line">
                        <dl>
                            <dt><div class="one">&nbsp;&nbsp;&nbsp;在线游戏</div></dt>
                            <dd>
                                <a href="#"></a>
                                <a href="#"></a>
                                <a href="#"></a>
                            </dd>
                            
                        </dl>

                    </div>
                    <div class="roll1">
                        <ul>
                            <li><a href="#"></a></li>
                            <li><a href="#"></a></li>
                            <li><a href="#"></a></li>
                            <li><a href="#"></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            
        </div>
    </nav>
    <div class="video">
        <div class="container">
            <div class="video-">
                <ul>
                    <li><a href="#"><img src="./images/bd1.jpg" alt="">
                    <p>博雅互动宣传视频</p>
                    <p>点击播放&nbsp;<i class="iconfont icon-right-fill you"></i>
                    </p>
                    </a></li>
                    <li><a href="#"><img src="./images/bd2.jpg" alt="">
                    <p>博雅互动宣传视频</p>
                    <p>点击播放&nbsp;<i class="iconfont icon-right-fill you"></i>
                    </p>
                    </a></li>
                    <li><a href="#"><img src="./images/bd3.jpg" alt="">
                    <p>博雅互动宣传视频</p>
                    <p>点击播放&nbsp;<i class="iconfont icon-right-fill you"></i>
                    </p>
                    </a></li>
                    <li><a href="#"><img src="./images/bd4.jpg" alt="">
                    <p>博雅互动宣传视频</p>
                    <p>点击播放&nbsp;<i class="iconfont icon-right-fill you"></i>
                    </p>
                    </a></li>
                </ul>
            </div>
        </div>
        <div class="roll2">
            <ul>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
            </ul>
        </div>
    </div>
    <div class="bottom">
        <div class="container">
            <div class="bottom-left fl">  
                <ul>
                    <li><p title="博雅互动公布2018年第三季度业绩,善用成本费用控制政策,在考验中做好防守11/22">博雅互动公布2018年第三季度业绩,善用成本费用控制政策,在考验中做好防守</p>
                    <p>
                        11/22
                    </p></li>
                    <li><p title="博雅互动公布2018年第三季度业绩,成本费用控制良好,股权投资收益增加,积极打造高质量的游戏及赛事产品11/22">博雅互动公布2018年第三季度业绩,成本费用控制良好,股权投资收益增加,积极打造高质量的游戏及赛事产品</p>
                    <p>11/22</p></li>
                    <li><p title="博雅互动义工队中秋探访敬老院,带关爱走进夕阳生活09/25">博雅互动义工队中秋探访敬老院,带关爱走进夕阳生活09/25</p>
                    <p>11/22</p></li>
                    <li><p title="博雅互动公布2018年中期业绩,巩固现有市场地位,加大力度拓展海外市场及其他棋牌游戏业务08/23">博雅互动公布2018年中期业绩,巩固现有市场地位,加大力度拓展海外市场及其他棋牌游戏业务08/23</p><p>11/22</p></li>
                </ul> 
                <a href="#"><div class="more1">MORE+</div></a>
            </div>
            <div class="bottom-right fr">
                <div class="job">
                    <p>社会招聘</p>
                    <p style="font-size: 12px;font-weight: normal;">adff</p>
                </div>
                
                <ul>
                    <p>社会招聘岗位:</p>
                    <li>PHP开发工程师</li>
                    <li>C++开发工程师</li>
                    <li>LUA开发工程师</li>
                    <li>大数据开发工程师</li>
                </ul>
                <a href="#"><div class="more2">MORE+</div></a>
            </div>
        </div>
    </div>
    <footer class="footer">
        <div class="container">
            <div class="footer-">
                    <p>网站地图  |  免责声明  |  监督举报</p>
                    <p>Copyright © 2004 - 2019 博雅互动(Boyaa Interactive)粤ICP备05062536号</p>
                    <p>网络文化经营许可证:粤网文[2015]1991-405号 | 互联网出版许可证:新出网证(粤)字062号 | 增值电信业务经营许可证:粤B2-20110513
                    </p>
                    <div class="hui"></div>
            </div>
        </div>
    </footer>
    <div class="sidebar">
        <a href="#"><div class="sidebar-">
            <i class="iconfont icon-up-fill up"></i>&nbsp;TOP
            </div>
        </a>
    </div>
</body>
</html>

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐