zoukankan      html  css  js  c++  java
  • 前端学习笔记day11 京东电商项目2

    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>京东(JD.COM)-综合网购首选,正品低价,品质保证,配送及时,轻松购物</title>
        <meta name="description" content="京东JD.COM-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
        <meta name="Keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东""/>
        <link rel="shortcut icon" href="favicon.ico">
        <link rel="stylesheet" type="text/css" href="CSS/normalize.css">
        <link rel="stylesheet" type="text/css" href="CSS/base.css">
        <link rel="stylesheet" type="text/css" href="CSS/index.css">
    </head>
    <body>
        <!-- 页面头部分start -->
        <header>
            <div class="w"></div>
        </header>
        <!-- 页面头部分end -->
    
        <!-- 个人信息部分start -->
        <div class="info">
            <ul class="w">
                <li><span></span><a href="#">北京</a></li>
                <li><a href="#">你好,请登录 <span>免费注册</span></a></li>
                <li><i class="line"></i></li>
                <li><a href="#">我的订单</a></li>
                <li><i class="line"></i></li>
                <li><a href="#">我的京东</a><span class="arrow-b"></span></li>
                <li><i class="line"></i></li>
                <li><a href="#">京东会员</a></li>
                <li><i class="line"></i></li>
                <li><a href="#">企业采购</a></li>
                <li><i class="line"></i></li>
                <li><a href="#">客户服务</a></li>
                <li><i class="line"></i></li>
                <li><a href="#">网站导航</a></li>
                <li><i class="line"></i></li>
                <li><a href="#">手机京东</a><img src="images/mobile.png" alt=""></li>
            </ul>
        </div>
        <!-- 个人信息部分end -->
    
        <!-- 搜索框部分start -->
        <div class="search w">
            <div class="logo"></div>
            <form>
                <input type="text" name="" placeholder="扫描仪">
                <button></button>
            </form>
            <div class="shopping-car">
                <span><i></i>我的购物车</span>
                <span>0</span>
            </div>
            <div class="text">
                <ul>
                    <li><a href="#">199减100</a></li>
                    <li><a href="#">鼠标试用</a></li>
                    <li><a href="#">农贸7折</a></li>
                    <li><a href="#">低至29元</a></li>
                    <li><a href="#">抽奖赢空调</a></li>
                    <li><a href="#">记忆棉</a></li>
                    <li><a href="#">坐垫</a></li>
                    <li><a href="#">1分钱买油</a></li>
                    <li><a href="#">智能手表</a></li>
                </ul>
            </div>
            <div class="text-b">
                <ul>
                    <li><a href="#">秒杀</a></li>
                    <li><a href="#">优惠券</a></li>
                    <li><a href="#">闪购</a></li>
                    <li><a href="#">拍卖</a></li>
                    <li><span class="line"></span></li>
                    <li><a href="#">服装城</a></li>
                    <li><a href="#">京东超市</a></li>
                    <li><a href="#">生鲜</a></li>
                    <li><a href="#">全球购</a></li>
                    <li><span class="line"></span></li>
                    <li><a href="#">京东金融</a></li>
                </ul>
            </div>
            <div class="img-r">
                <a href="#"><img src="images/super.png"></a>
            </div>
        </div>
        <!-- 搜索框部分end -->
    
        <!-- 页面中间部分 -->
        <div class="middle w">
            <div class="middle-l">
                <div class="ad">
                    <img src="images/ad-l.png">
                    <div class="ad-r"></div>
                </div>
                <ul>
                    <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>
                    <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>
                    <li><a href="#">手机/运营商/数码</a></li>
                    <li><a href="#">理财/众筹/白条/保险</a></li>
                </ul>
            </div>
            <div class="middle-m">
                <div class="middle-m-t">
                    <div class="arrow-l"><a href="#"> < </a></div>
                    <div class="arrow-r"><a href="#"> > </a></div>
                    <img src="images/banner.jpg">
                    <div class="circle">
                        <ul>
                            <li></li>
                            <li></li>
                            <li class="current"></li>
                            <li></li>
                            <li></li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </div>
                </div>
                <div class="middle-m-b">
                    <div class="middle-m-b-l">
                        <img src="images/l.jpg">
                    </div>
                    <div class="middle-m-b-r">
                        <img src="images/r.jpg">
                    </div>
                </div>
            </div>
            <div class="middle-r">
                <div class="middle-r-t">
                    <p>Hi,欢迎来到京东购物网站! </p>
                    <p>
                        <a href="#">登录</a><a href="#">注册</a>
                    </p>
                    <div class="middle-r-t-b">
                        <div><a href="#">新人福利</a></div>
                        <div><a href="#">PLUS会员</a></div>
                    </div>
                    <div class="middle-r-t-img">
                        <img src="images/no_login.jpg">
                    </div>
                </div>
                <div class="moddle-r-m">
                    <dl>
                        <dt>
                            <a href="#">促销</a>
                            <span></span>
                            <a href="#">公告</a>
                            <a href="#">更多</a>
                        </dt>
                        <dd><a href="#">挑战3天不洗头</a></dd>
                        <dd><a href="#">挑战3天不洗头</a></dd>
                        <dd><a href="#">益生菌领券满399减100</a></dd>
                        <dd><a href="#">益生菌领券满399减100</a></dd>
                    </dl>
                </div>
                <div class="middle-r-b">
                    <ul>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                        <li><a href="#"><span></span>话费</a></li>
                    </ul>
                </div>
            </div>
        </div>
    
        <!-- 页面底部分start -->
        <div class="footer">
            <!-- 底部的上面部分 -->
            <div class="footer-t">
                <ul>
                    <li><span class="img-1"></span>品类齐全,轻松购物</li>
                    <li><span class="img-2"></span>品类齐全,轻松购物</li>
                    <li><span class="img-3"></span>品类齐全,轻松购物</li>
                    <li><span class="img-4"></span>品类齐全,轻松购物</li>
                </ul>
            </div>
            <div class="footer-m w">
                <div class="footer-m-l">
                    <dl>
                        <dt>购物指南</dt>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                    </dl>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                    </dl>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                    </dl>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                    </dl>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                        <dd>购物流程</dd>
                    </dl>
                </div>
                <div class="footer-m-r">
                    <h4>京东自营覆盖区县</h4>
                    <p>京东已向全国2661个区县提供自</p>
                    <p>营配送服务,支持货到付款、</p>
                    <p>POS机刷卡和售后上门服务。</p>
                    <p>查看详情 <span>></span> </p>
                </div>
            </div>
            <div class="footer-about w">
                <ul>
                    <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>
                    <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>
            <div class="footer-law w">
                <p>京公网安备 11000002000088号<span></span>京ICP证070359号<span></span>互联网药品信息服务资格证编号(京)-经营性-2014-0008 <span></span>新出发京零 字第大120007号</p>
                <p>互联网出版许可证编号新出网证(京)字150号<span></span>出版物经营许可证<span></span>网络文化经营许可证京网文[2014]2148-348号<span></span>违法和不良信息举报电话:4006561155</p>
                <p>Copyright © 2004 - 2017 京东JD.com 版权所有<span></span>消费者维权热线:4006067733经营证照 京东旗下网站:京东支付<span></span>京东云</p>
            </div>
            <div class="footer-b w">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
        </div>
        <!-- 页面底部分end-->
    </body>
    </html>
    View Code
    .middle {
        overflow: hidden;
        margin-bottom: 40px;
    }
    .middle .middle-l {
        float: left;
    }
    .middle .middle-l ul {
        width: 180px;
        height: 490px;
        background-color: grey;
        padding-top: 10px;
        font-size: 14px;
        line-height: 29px;
        box-sizing: border-box;
    }
    .middle .middle-l img {
        position: absolute;
        top: 249px;
        left: -58px;
    }
    .middle .middle-l .ad-r {
        position: absolute;
        background: url("../images/ad-r.jpg");
        left: 192px;
        top: 262px;
        z-index: 999;
        width: 0px;
        height: 492px;
        transition: all 0.8s;
    }
    .ad:hover .ad-r {  
        width: 990px;
    }
    .middle .middle-l ul li a {
        width: 180px;
        display: block;
        color: #fff;
        padding-left: 14px;
        box-sizing: border-box;
    }
    .middle .middle-l a:hover {
        color: red;
        background-color: #ccc;
    }
    .middle .middle-m {
        width: 791px;
        height:490px;
        float: left;
        padding-left: 16px;
    }
    .middle .middle-m-t {
        width: 100%;
        height: 361px;
        padding-bottom: 20px;
        box-sizing: border-box;
        position: relative;
    }
    .middle-m-b {
        width: 100%;
        height: 139px;
    }
    .middle-m-b .middle-m-b-l {
        float: left;
    }
    .middle-m-b .middle-m-b-r {
        float: right;
    }
    .middle-m-b img {
        vertical-align: top;
    }
    .middle-m-t .arrow-l,.middle-m-t .arrow-r {
        position: absolute;
        width: 26px;
        height: 50px;
        background-color: rgba(0,0,0,0.3);
        font-size: 24px;
        text-align: center;
        line-height: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
    .middle-m-t .arrow-r {
        right: 0px;
    }
    .middle-m-t .arrow-l a,.middle-m-t .arrow-r a {
        color: #fff;
    }
    .middle-m-t a:hover {
        color: red;
    } 
    .middle-m-t .circle {
        width: 191px;
        height: 22px;
        background: rgba(255,255,255,0.4);
        border-radius: 10px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 40px;
        padding-left: 7px;
        box-sizing: border-box;
    }
    .circle ul li {
        float: left;
        width: 12px;
        height: 12px;
        background-color: #fff;
        border-radius: 50%;
        margin: 5px 5px;
        cursor: pointer;
    }
    .circle ul .current {
        background-color: red;
    }
    .middle .middle-r {
        width: 202px;
        height: 491px;
        float: right;
    }
    .middle-r {
        background-color: #fdfcfc;
    }
    .middle-r .middle-r-t {
        width: 100%;
        height: 100px;
        padding: 10px 10px;
        font-size: 14px;
        position: relative;
        border-bottom: 1px solid grey;
    }
    .middle-r-t p:nth-child(1) {
        width: 114px;
        position: absolute;
        right: 41px;
        top: 21px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .middle-r-t p:nth-child(2) {
        width: 70px;
        height: 30px;
        position: absolute;
        top: 41px;
        right: 85px;
        text-align: center;
        line-height: 30px;
        padding: 0px 4px;
    }
    .middle-r-t p a {
        color: #000;
        padding-right: 4px;
    }
    .middle-r-t p a:hover {
        color: red;
    }
    .middle-r-t-b {
        width: 158px;
        height: 30px;
        position: absolute;
        bottom: 20px;
        left: 20px;
        padding-left: 2px;
    }
    .middle-r-t-b div {
        width: 69px;
        height: 28px;
        border: 2px solid red;
        float: left;
        margin: 0px 3px;
        text-align: center;
        line-height: 28px;
        
    }
    .middle-r-t-b div a {
        width: 69px;
        display: inline-block;
        font-size: 14px;
        color: red;
    }
    .middle-r-t-b div a:hover {
        color: #fff;
        background-color: red;
    }
    .middle-r-t-img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid red;
        overflow: hidden;
        box-sizing: border-box;
        position: absolute;
        top: 18px;
        left: 10px;
    }
    .middle-r-t-img img {
        width: 36px;
        border-radius: 50%;
        margin: 2px;
    }
    .moddle-r-m {
        width: 176px;
        height: 170px;
        margin: 0px auto;
    }
    .moddle-r-m dt {
        width: 100%;
        height: 28px;
        font-size: 12px;
        border-bottom: 1px solid grey;
        
    }
    .moddle-r-m dt a {
        color: grey;
        display: inline-block;
        height: 15px;
        line-height: 15px;
        margin: 8px 21px 8px 0px;
        padding-bottom: 4px;
    }
    .moddle-r-m dt a:first-child {
        border-bottom: 2px solid red;
    }
    .moddle-r-m dt span {
        width: 1px;
        height: 15px;
        background-color: grey;
        display: inline-block;
        margin: 3px 10px -4px -5px;
        
    }
    .moddle-r-m dt a:last-child {
        margin-right: 0px;
        padding-right: 0px;
        float: right;
    }
    .moddle-r-m dd {
        padding-top: 19px;
        line-height: 9px;
        font-size: 14px;
    }
    .moddle-r-m dd a {
        color: grey;
    }
    .moddle-r-m dd a:hover {
        color: red;
    }
    .middle-r-b ul {
        width: 101%;
        height: 100%;
        overflow: hidden;
    }
    .middle-r-b ul li {
        float: left;
        width: 50px;
        height: 66px;
        font-size: 12px;
        position: relative;
        border-top: 1px solid grey;
        border-right: 1px solid grey;
    }
    .middle-r-b ul li a {
        width: 24px;
        color: grey;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }
    .middle-r-b a span {
        position: absolute;
        width: 20px;
        height: 30px;
        top: -35px;
        left: -1px;
        background: url("../images/sprite_fs@1x.png") no-repeat 0px -82px; 
    }
    .middle-r-b ul li a:hover {
        color: red;
    }
    View Code
    /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
    /*
    http://necolas.github.io/normalize.css/
    */
    /**
     * 1. Change the default font family in all browsers (opinionated).
     * 2. Correct the line height in all browsers.
     * 3. Prevent adjustments of font size after orientation changes in
     *    IE on Windows Phone and in iOS.
     */
    
    /* Document
       ========================================================================== */
    
    html {
        font-family: sans-serif; /* 1 */
        line-height: 1.15; /* 2 */
        -ms-text-size-adjust: 100%; /* 3 */
        -webkit-text-size-adjust: 100%; /* 3 */
    }
    
    /* Sections
       ========================================================================== */
    
    /**
     * Remove the margin in all browsers (opinionated).
     */
    
    body {
        margin: 0;
    }
    
    /**
     * Add the correct display in IE 9-.
     */
    
    article,
    aside,
    footer,
    header,
    nav,
    section {
        display: block;
    }
    
    /**
     * Correct the font size and margin on `h1` elements within `section` and
     * `article` contexts in Chrome, Firefox, and Safari.
     */
    
    h1 {
        font-size: 2em;
        margin: 0.67em 0;
    }
    
    /* Grouping content
       ========================================================================== */
    
    /**
     * Add the correct display in IE 9-.
     * 1. Add the correct display in IE.
     */
    
    figcaption,
    figure,
    main { /* 1 */
        display: block;
    }
    
    /**
     * Add the correct margin in IE 8.
     */
    
    figure {
        margin: 1em 40px;
    }
    
    /**
     * 1. Add the correct box sizing in Firefox.
     * 2. Show the overflow in Edge and IE.
     */
    
    hr {
        box-sizing: content-box; /* 1 */
        height: 0; /* 1 */
        overflow: visible; /* 2 */
    }
    
    /**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
    
    pre {
        font-family: monospace, monospace; /* 1 */
        font-size: 1em; /* 2 */
    }
    
    /* Text-level semantics
       ========================================================================== */
    
    /**
     * 1. Remove the gray background on active links in IE 10.
     * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
     */
    
    a {
        background-color: transparent; /* 1 */
        -webkit-text-decoration-skip: objects; /* 2 */
    }
    
    /**
     * Remove the outline on focused links when they are also active or hovered
     * in all browsers (opinionated).
     */
    
    a:active,
    a:hover {
        outline-width: 0;
    }
    
    /**
     * 1. Remove the bottom border in Firefox 39-.
     * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
     */
    
    abbr[title] {
        border-bottom: none; /* 1 */
        text-decoration: underline; /* 2 */
        text-decoration: underline dotted; /* 2 */
    }
    
    /**
     * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
     */
    
    b,
    strong {
        font-weight: inherit;
    }
    
    /**
     * Add the correct font weight in Chrome, Edge, and Safari.
     */
    
    b,
    strong {
        font-weight: bolder;
    }
    
    /**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
    
    code,
    kbd,
    samp {
        font-family: monospace, monospace; /* 1 */
        font-size: 1em; /* 2 */
    }
    
    /**
     * Add the correct font style in Android 4.3-.
     */
    
    dfn {
        font-style: italic;
    }
    
    /**
     * Add the correct background and color in IE 9-.
     */
    
    mark {
        background-color: #ff0;
        color: #000;
    }
    
    /**
     * Add the correct font size in all browsers.
     */
    
    small {
        font-size: 80%;
    }
    
    /**
     * Prevent `sub` and `sup` elements from affecting the line height in
     * all browsers.
     */
    
    sub,
    sup {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
    }
    
    sub {
        bottom: -0.25em;
    }
    
    sup {
        top: -0.5em;
    }
    
    /* Embedded content
       ========================================================================== */
    
    /**
     * Add the correct display in IE 9-.
     */
    
    audio,
    video {
        display: inline-block;
    }
    
    /**
     * Add the correct display in iOS 4-7.
     */
    
    audio:not([controls]) {
        display: none;
        height: 0;
    }
    
    /**
     * Remove the border on images inside links in IE 10-.
     */
    
    img {
        border-style: none;
    }
    
    /**
     * Hide the overflow in IE.
     */
    
    svg:not(:root) {
        overflow: hidden;
    }
    
    /* Forms
       ========================================================================== */
    
    /**
     * 1. Change the font styles in all browsers (opinionated).
     * 2. Remove the margin in Firefox and Safari.
     */
    
    button,
    input,
    optgroup,
    select,
    textarea {
        font-family: sans-serif; /* 1 */
        font-size: 100%; /* 1 */
        line-height: 1.15; /* 1 */
        margin: 0; /* 2 */
    }
    
    /**
     * Show the overflow in IE.
     * 1. Show the overflow in Edge.
     */
    
    button,
    input { /* 1 */
        overflow: visible;
    }
    
    /**
     * Remove the inheritance of text transform in Edge, Firefox, and IE.
     * 1. Remove the inheritance of text transform in Firefox.
     */
    
    button,
    select { /* 1 */
        text-transform: none;
    }
    
    /**
     * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
     *    controls in Android 4.
     * 2. Correct the inability to style clickable types in iOS and Safari.
     */
    
    button,
    html [type="button"], /* 1 */
    [type="reset"],
    [type="submit"] {
        -webkit-appearance: button; /* 2 */
    }
    
    /**
     * Remove the inner border and padding in Firefox.
     */
    
    button::-moz-focus-inner,
    [type="button"]::-moz-focus-inner,
    [type="reset"]::-moz-focus-inner,
    [type="submit"]::-moz-focus-inner {
        border-style: none;
        padding: 0;
    }
    
    /**
     * Restore the focus styles unset by the previous rule.
     */
    
    button:-moz-focusring,
    [type="button"]:-moz-focusring,
    [type="reset"]:-moz-focusring,
    [type="submit"]:-moz-focusring {
        outline: 1px dotted ButtonText;
    }
    
    /**
     * Change the border, margin, and padding in all browsers (opinionated).
     */
    
    fieldset {
        border: 1px solid #c0c0c0;
        margin: 0 2px;
        padding: 0.35em 0.625em 0.75em;
    }
    
    /**
     * 1. Correct the text wrapping in Edge and IE.
     * 2. Correct the color inheritance from `fieldset` elements in IE.
     * 3. Remove the padding so developers are not caught out when they zero out
     *    `fieldset` elements in all browsers.
     */
    
    legend {
        box-sizing: border-box; /* 1 */
        color: inherit; /* 2 */
        display: table; /* 1 */
        max-width: 100%; /* 1 */
        padding: 0; /* 3 */
        white-space: normal; /* 1 */
    }
    
    /**
     * 1. Add the correct display in IE 9-.
     * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
     */
    
    progress {
        display: inline-block; /* 1 */
        vertical-align: baseline; /* 2 */
    }
    
    /**
     * Remove the default vertical scrollbar in IE.
     */
    
    textarea {
        overflow: auto;
    }
    
    /**
     * 1. Add the correct box sizing in IE 10-.
     * 2. Remove the padding in IE 10-.
     */
    
    [type="checkbox"],
    [type="radio"] {
        box-sizing: border-box; /* 1 */
        padding: 0; /* 2 */
    }
    
    /**
     * Correct the cursor style of increment and decrement buttons in Chrome.
     */
    
    [type="number"]::-webkit-inner-spin-button,
    [type="number"]::-webkit-outer-spin-button {
        height: auto;
    }
    
    /**
     * 1. Correct the odd appearance in Chrome and Safari.
     * 2. Correct the outline style in Safari.
     */
    
    [type="search"] {
        -webkit-appearance: textfield; /* 1 */
        outline-offset: -2px; /* 2 */
    }
    
    /**
     * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
     */
    
    [type="search"]::-webkit-search-cancel-button,
    [type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }
    
    /**
     * 1. Correct the inability to style clickable types in iOS and Safari.
     * 2. Change font properties to `inherit` in Safari.
     */
    
    ::-webkit-file-upload-button {
        -webkit-appearance: button; /* 1 */
        font: inherit; /* 2 */
    }
    
    /* Interactive
       ========================================================================== */
    
    /*
     * Add the correct display in IE 9-.
     * 1. Add the correct display in Edge, IE, and Firefox.
     */
    
    details, /* 1 */
    menu {
        display: block;
    }
    
    /*
     * Add the correct display in all browsers.
     */
    
    summary {
        display: list-item;
    }
    
    /* Scripting
       ========================================================================== */
    
    /**
     * Add the correct display in IE 9-.
     */
    
    canvas {
        display: inline-block;
    }
    
    /**
     * Add the correct display in IE.
     */
    
    template {
        display: none;
    }
    
    /* Hidden
       ========================================================================== */
    
    /**
     * Add the correct display in IE 10-.
     */
    
    [hidden] {
        display: none;
    }
    View Code

    运行结果:

    主要是在昨天的基础上增加了中间部分的制作!

     

  • 相关阅读:
    laravel常用函数大全Helper
    laravel查询语句指定索引(mysql强制索引)
    laravel-admin后台系统开发
    ES搜索引擎详解
    怎么查看当前的git分支是基于哪个分支创建的
    laravel中使用offsetSet
    laragon安装新的php版本
    Laravel collect妙用
    composer install file could not be downloaded (HTTP/1.1 405 Not Allowed)
    garphql
  • 原文地址:https://www.cnblogs.com/xuanxuanlove/p/10160780.html
Copyright © 2011-2022 走看看