仿携程

<!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">
    <link rel="stylesheet" href="normalize.css">
    <title>携程在手,说走就走</title>
    <style>
        body {
            max-width: 540px;
            min-width: 320px;
            margin: 0 auto;
            font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
            color: #000;
            background: #f2f2f2;
            overflow-x: hidden;
            -webkit-tap-highlight-color: transparent;
        }

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

        a {
            text-decoration: none;
            color: #222;
        }

        div {
            box-sizing: border-box;
        }

        /* 声明样式 注意路径 */
        @font-face {
            font-family: 'icomoon';
            src: url('D:/VScode/vS资源/fonts/购物车和下拉/icomoon.eot?nmptm8');
            src: url('D:/VScode/vS资源/fonts/购物车和下拉/icomoon.eot?nmptm8#iefix') format('embedded-opentype'),
                url('D:/VScode/vS资源/fonts/购物车和下拉/icomoon.ttf?nmptm8') format('truetype'),
                url('D:/VScode/vS资源/fonts/购物车和下拉/icomoon.woff?nmptm8') format('woff'),
                url('D:/VScode/vS资源/fonts/购物车和下拉/icomoon.svg?nmptm8#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
            font-display: block;
        }

        .search-index {
            display: flex;
            position: fixed;
            width: 100%;
            height: 44px;
            max-width: 540px;
            min-width: 320px;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            background-color: #F6F6F6;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

        .search {
            position: relative;
            border-radius: 5px;
            height: 26px;
            flex: 1;
            line-height: 24px;
            color: #666;
            font-size: 12px;
            margin: 8px 14px;
            padding-left: 25px;
            border: 1px solid #ccc;
            box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
        }

        .search::before {
            position: absolute;
            vertical-align: left;
            content: "";
            background: url(1.jpg) no-repeat;
            font-family: 'icomoon';
            width: 15px;
            height: 15px;
            top: 5px;
            left: 5px;
            text-align: center;
            line-height: 26px;
        }

        .user {
            width: 44px;
            height: 44px;
            color: cornflowerblue;
            margin-bottom: 0;
        }

        .user::before {
            content: '\e900';
            font-family: 'icomoon';
            display: block;
            width: 23px;
            height: 23px;
            font-size: 20px;
            text-align: center;
            line-height: 28px;
            margin-left: 5px;
            color: blueviolet;
        }

        .focus {
            display: flex;
            background: url(废鱼1.jpg) repeat 0px -38px;
            background-size: 100% 100%;
            width: 100%;
            height: 100px;
            margin-top: 44px;
            margin-left: 50%;
            transform: translateX(-50%);

        }

        .nav-common {
            display: flex;
            flex: 1;
            width: 100%;
            height: 88px;
            border-radius: 5px;
        }

        .nav-common:nth-child(1) {
            background: -webkit-linear-gradient(top left, #FA5A55, #FA994D);
        }

        .nav-common:nth-child(2) {
            background: -webkit-linear-gradient(top left, #4B90ED, #53BCED);
        }

        .nav-common:nth-child(3) {
            background: -webkit-linear-gradient(top left, #34C2A9, #6CD559);
        }

        .nav-common:nth-child(4) {
            background: -webkit-linear-gradient(top left, #FA5A55, #FA994D);
        }

        .nav-items {
            width: 33.33%;
            border: 1px solid snow;
            display: flex;
            flex-direction: column;
        }

        .nav-items a {
            color: snow;
            font-size: 18px;
            text-align: center;
            line-height: 44px;
            border-top: 1px solid #fff;
        }

        .nav-items:nth-child(1) a {
            /* background: url(sheep.png) no-repeat -50px -34px; */
            background-size: 130% 114px;
            width: 100%;
            height: 100%;
        }

        .nav-common:nth-child(4) a {
            background: url();
        }

        .subnav-entry {
            display: flex;
            margin: 0 4px;
            padding: 5px 0;
            flex-wrap: wrap;
            border-radius: 15px;
            border: 2px solid #ccc;
        }

        .subnav-entry li {
            display: flex;
            flex: 20%;
            height: 50px;
            margin: 0;
            padding: 0;
            flex-direction: column;
            align-items: center;
            background-color: rgb(237, 247, 250);
            border: 1px solid #ccc;
        }

        .subnav-entry li a {
            text-indent: 5px;
            color: black;
            font-size: 17px;
            margin-bottom: 0;
        }

        .subnav-entry li::before {
            content: '\e900';
            font-family: 'icomoon';
            margin-top: 0;
            display: block;
            width: 23px;
            height: 23px;
            color: burlywood;
            line-height: 23px;
            font-size: 26px;
        }

        .walefare {
            display: flex;
            width: 100%;
            height: 420px;
            font-size: 28px;
            font-weight: 800;
            text-indent: 25px;
        }

        .salefare {
            flex: 50%;
            border: 1px solid #ccc;
            border-right: 0;
            border-left: 0;
            flex-direction: column;
        }

        .salefare a:nth-child(1) {
            display: block;
            height: 280px;
            color: chartreuse;
            border-bottom: 1px solid #000;
        }

        .salefare a:nth-child(2) {
            color: darkgoldenrod;
        }

        .profit {
            flex: 50%;
            border: 1px solid #ccc;
            border-right: 0;
        }

        .profit li {
            flex-direction: column;
            height: 140px;
            border-bottom: 1px solid #000;
        }

        .profit li:nth-child(1) {
            color: plum;
        }

        .profit li:nth-child(2) {
            color: gold;
        }

        .profit li:nth-child(3) {
            color: brown;
            border-bottom: 0;
        }
    </style>
</head>

<body>
    <!-- 1.搜索 -->
    <div class="search-index">
        <div class="search">搜索:目的地/酒店/景点/航班号</div>
        <a href="#" class="user">我 的</a>
    </div>
    <!-- 2.焦点 -->
    <div class="focus"></div>
    <!-- 3.导航 -->
    <nav>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#" alt="">监督管理</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">监督管理</a>
                <a href="#" alt="">监督管理</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">监督管理</a>
                <a href="#" alt="">监督管理</a>
            </div>
        </div>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#" alt="">飞机</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">回头让他</a>
                <a href="#" alt="">他如何</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">歌好听人和</a>
                <a href="#" alt="">虽然特让</a>
            </div>
        </div>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#" alt="">飞机</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">回头让他</a>
                <a href="#" alt="">他如何</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">歌好听人和</a>
                <a href="#" alt="">虽然特让</a>
            </div>
        </div>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#" alt="">所发生的f</a>
                <a href="#" alt="">v电费滚滚</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">所发生的f</a>
                <a href="#" alt="">v电费滚滚</a>
            </div>
            <div class="nav-items">
                <a href="#" alt="">所发生的f</a>
                <a href="#" alt="">v电费滚滚</a>
            </div>
        </div>
    </nav>
    <!-- 4.侧导航 -->
    <ul class="subnav-entry">
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
        <li><a href="#" alt="">所发生的f</a></li>
    </ul>
    <!-- 5.领福利 -->
    <div class="walefare">
        <div class="salefare">
            <a>签到令肌肤</a>
            <a>亿元抽奖</a>
        </div>
        <div class="profit">
            <ul>
                <li>等我领红包</li>
                <li>免费天堂游</li>
                <li>0元抽</li>
            </ul>
        </div>
    </div>

</body>

</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值