复刻boss直聘School界面(css+html)

本文展示了如何使用HTML和CSS复刻BOSS直聘School界面的头部导航、长图、搜索栏和底部布局。通过详细的CSS样式设置,包括颜色、字体、布局等,实现了界面各个部分的视觉效果,包括导航按钮、搜索框、文字描述和底部信息展示。
摘要由CSDN通过智能技术生成

<!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>
</head>

<body>
    <!-- 头部导航 -->
    <style>
        /* 头部样式 */
        
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            background-color: rgba(230, 230, 240, 0.6);
        }
        
        .div-head {
            width: 100%;
            height: 90px;
            background-color: rgb(32, 35, 41);
        }
        
        .gay {
            margin-top: -20px;
        }
        
        .div-icon {
            float: left;
            margin-left: 110px;
            margin-top: 40px;
        }
        
        .ul-head {
            float: left;
            list-style-type: none;
            margin-top: 40px;
            margin-left: 5px;
        }
        
        .ul-head li {
            float: left;
            color: white;
            margin-left: 25px;
        }
        
        .ul-head li:hover {
            color: rgb(93, 213, 200);
        }
        
        .ul-head .li-first {
            color: rgb(93, 213, 200);
        }
        
        .img-head {
            width: 100px;
            height: 30px;
        }
        
        .ul-head-button {
            float: right;
            list-style-type: none;
            margin-top: 15px;
            margin-right: 50px;
        }
        
        .ul-head-button li {
            float: right;
            margin-top: 28px;
            margin-right: 15px;
            color: white;
        }
        
        .ul-head-button .button-dl {
            width: 57px;
            height: 25px;
            background-color: rgb(32, 35, 41);
            color: white;
            border-color: rgb(93, 213, 200);
            border-width: 2px;
            border-style: solid;
            margin-top: -5px;
            border-radius: 25px;
            font-size: small;
            text-align: center;
            line-height: 25px;
        }
        
        .ul-head-button .button-dl :hover {
            background-color: rgb(93, 213, 200);
            color: white;
        }
        
        .ul-head-button .button-zc {
            width: 57px;
            height: 25px;
            background-color: rgb(32, 35, 41);
            color: white;
            border-color: rgb(93, 213, 200);
            border-style: solid;
            border-width: 2px;
            border-radius: 25px;
            margin-top: -5px;
            margin-left: 5px;
            font-size: small;
            text-align: center;
            line-height: 25px;
        }
        
        .button-zc:hover {
            background-color: rgb(93, 213, 200);
            color: white;
        }
        
        .div-icon ul {
            list-style-type: none;
            margin-top: 2px;
        }
        
        .div-icon ul>li {
            float: left;
            color: white;
        }
        
        .div-icon ul>li div {
            float: left;
        }
        
        .div-icon .icon-001 {
            color: rgb(93, 213, 200);
            font-size: 24px;
            font-weight: bold;
            margin-top: -7px;
        }
        
        .div-icon li .cd {
            color: rgb(93, 213, 200);
        }
    </style>
    <div class="div-head">
        <div class="gay">
            <div class="div-icon">
                <ul>
                    <li class="icon-001">BOSS直聘</li>

                </ul>
            </div>
            <!-- 字标样式 -->
            <style>
                .span-01 {
                    width: 30px;
                    height: 17px;
                    color: white;
                    background-color: red;
                    font-size: small;
                    border-radius: 10px;
                    position: absolute;
                    top: -11px;
                    line-height: 17px;
                    text-align: center;
                }
                
                .ul-head-button .rt-001:hover {
                    color: rgb(93, 213, 200);
                }
            </style>
            <ul class="ul-head">
                <li class="li-first">首页</li>
                <li>职位</li>
                <li style="position: relative;">校园 <span class="span-01">New</span> </li>
                <li>海归</li>
                <li>公司</li>
                <li>APP</li>
                <li>咨询</li>
                <li style="position: relative;">发现<span class="span-01">hot</span> </li>
            </ul>
            <ul class="ul-head-button">
                <li>
                    <div class="button-zc" οnclick="jump()">注册</div>
                </li>
                <li>
                    <div class="button-dl">登录</div>
                </li>
                <li class="rt-001">上传简历</li>
                <li class="rt-001" style="position: relative;">我要找工作<span class="span-01">hot</span> </li>
                <li class="rt-001">我要招聘</li>
            </ul>
        </div>
    </div>
    <!-- /头部导航 -->
    <!-- 头部下长图 -->
    <style>
        .second-box {
            width: 100%;
            height: 180px;
            background-color: #36c6bb;
            background: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school/banner/top.png) no-repeat;
            background-size: auto 100%;
            background-position: center;
        }
    </style>
    <div class="second-box"></div>
    <!-- /头部下长图 -->
    <!-- 搜索栏 -->
    <style>
        .third-box {
            width: 100%;
            position: relative;
        }
        
        .third-box-top {
            position: absolute;
            width: 980px;
            height: 34px;
            top: 35px;
            left: 300px;
            font-size: 0;
        }
        
        .tbt-1 {
            vertical-align: middle;
            display: inline-block;
            width: 98px;
            height: 34px;
            background: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school-search-type@2x.png) no-repeat;
            background-size: 250px 112px;
            cursor: pointer;
            background-position: 0 -78px;
        }
        
        .tbt-2 {
            vertical-align: middle;
            display: inline-block;
            width: 98px;
            height: 34px;
            background: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school-search-type@2x.png) no-repeat;
            background-size: 250px 112px;
            cursor: pointer;
            margin-left: -11px;
            background-position: -152px -39px;
        }
        
        .third-box-bottom {
            position: absolute;
            left: 300px;
            top: 69px;
            width: 980px;
            height: 50px;
        }
        
        .tbb-btn {
            width: 130px;
            height: 50px;
            line-height: 50px;
            background-color: rgb(93, 213, 200);
            font-size: 16px;
            float: right;
            text-align: center;
            line-height: 50px;
            color: white;
        }
        
        .tbb-ipt {
            width: 848px;
            height: 48px;
            float: left;
            border: none;
            outline: none;
        }
        
        .tbb-ipt:hover {
            border: 1px solid rgb(93, 213, 200);
        }
    </style>
    <div class="third-box">
        <div class="third-box-top">
            <div class="tbt-1"></div>
            <div class="tbt-2"></div>
        </div>
        <div class="third-box-bottom">
            <input type="text" class="tbb-ipt" placeholder="成都&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;搜索职位、公司">

            <div class="tbb-btn">搜索</div>
        </div>
    </div>
    <!-- /搜索栏 -->
    <!-- 轮播图部分 -->
    <style>
        .four-box {
            position: relative;
        }
        
        .fb-lbt {
            width: 884px;
            height: 340px;
            position: absolute;
            top: 170px;
            left: 500px;
            z-index: 1;
            margin: 0 auto;
            background-image: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school/banner/bosszhipin.jpg);
            animation: cgpic 6s;
            animation-iteration-count: infinite;
        }
        
        @keyframes cgpic {
            25% {
                background-image: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school/banner/bosszhipin.jpg);
            }
            50% {
                background-image: url(https://static.zhipin.com/zhipin-geek/v489/web/geek/images/school/banner/renshebu.jpg);
                background-size: 884px 340px;
            }
            75% {
                background-image: url(https://img.bosszhipin.com/static/file/2021/7onvxp591m1637828195167.jpeg);
                background-size: 884px 340px;
            }
            100% {
                background-image: url(https://img.bosszhipin.com/static/file/2021/c00k2zjxpx1637821843865.jpg);
                background-size: 884px 340px;
            }
        }
        
        .fb-top {
            width: 284px;
            height: 150px;
            position: absolute;
            left: 195px;
            top: 170px;
            background-color: white;
        }
        
        .fb-top ul {
            list-style-type: none;
        }
        
        .fb-top ul li {
            height: 50px;
            text-indent: 25px;
            line-height: 50px;
            color: rgb(70, 69, 69);
            font-weight: bold;
            font-size: 15px;
        }
        
        .fb-top ul li:hover {
            background-color: #00c2b3;
            color: white;
        }
        
        .fb-bottom {
            width: 284px;
            height: 150px;
            position: absolute;
            left: 195px;
            top: 360px;
            background-color: white;
        }
        
        .fb-bottom ul {
            list-style-type: none;
        }
        
        .fb-bottom ul li {
            height: 50px;
            text-indent: 25px;
            line-height: 50px;
            color: rgb(70, 69, 69);
            font-weight: bold;
            font-size: 15px;
            position: relative;
        }
        
        .fb-bottom ul .li-02 {
            font-size: 13px;
            margin-top: -18px;
            font-weight: normal;
        }
        
        .fb-bottom ul .li-02:hover {
            color: #00c2b3;
        }
        
        .ft-hov {
            position: absolute;
            left: 300px;
            width: 890px;
            top: 0px;
            height: 340px;
            background-color: white;
            z-index: 100;
            display: none;
        }
        
        .ft-hov table {
            color: black;
            font-weight: normal;
            border-collapse: collapse;
            margin-left: 50px;
            font-size: small;
            color: #414a60;
        }
        
        .ft-hov table td {
            width: 175px;
            text-align: left;
        }
        
        .ft-hov table .ft {
            font-size: normal;
            color: rgb(32, 32, 32);
            font-weight: bold;
        }
        
        .ft-hov table td:hover {
            color: #00c2b3;
        }
        
        .fb-top ul li:hover .ft-hov {
            display: block;
        }
        
        .gg {
            height: 100px;
            overflow-y: scroll;
        }
    </style>
    <div class="four-box">
        <div class="fb-top">
            <ul>
                <li>互联网技术/运营/产品
                    <div class="ft-hov">
                        <table>
                            <tr>
                                <td class="ft">互联网技术</td>
                                <td></td>
                                <td></td>
                                <td class="ft">运营</td>
                                <td class="ft">产品</td>
                            </tr>
                            <tr>
                                <td>Android</td>
                                <td>数据挖掘/机器学习</td>
                                <td>JAVA</td>
                                <td>客服</td>
                                <td>产品经理</td>
                            </tr>
                            <tr>
                                <td>后端开发</td>
                                <td>搜索/广告/推荐算法</td>
                                <td>PHP</td>
                                <td>产品运营</td>
                                <td>数据产品经理</td>
                            </tr>
                            <tr>
                                <td>Python</td>
                                <td>Web前端</td>
                                <td>C/C++</td>
                                <td>内容运营</td>
                                <td>用户研究</td>
                            </tr>
                            <tr>
                                <td>IT运维/安全</td>
                                <td>U3D/COCOS2DX</td>
                                <td>C#/NET</td>
                                <td>新媒体</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>测试</td>
                                <td>数据分析</td>
                                <td>Golang</td>
                                <td>用户运营</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>iOS</td>
                                <td>语音/视频/图形/开发</td>
                                <td>IT硬件</td>
                                <td>SEO/SEM</td>
                                <td></td>
                            </tr>
                        </table>
                    </div>
                </li>
                <li>设计/销售/房地产
                    <div class="ft-hov">
                    </div>
                </li>
                <li>人力/法律
                    <div class="ft-hov">
                    </div>
                </li>
            </ul>
        </div>
        <div class="fb-bottom">
            &l

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值