zoukankan      html  css  js  c++  java
  • 【电商1】shortcut

    • 首先确定大小(长宽高height-行高lineHight,text-align:center),颜色(bgc,color,border),定位

    • 多者并列用li,再指定 这部分的li为float left

    • section使用,float不继承

    html

    <section class="shortcut">
            <div class="w">
                <div class="fl">
                    <ul>
                        <li>品优购欢迎您!</li>
                        <li><a href="#">请登录</a>&nbsp;<a href="#" class="style_red">免费注册</a></li>
                    </ul>
                </div>
                <div class="fr">
                    <ul>
                        <li><a href="#">我的订单</a></li>
                        <li></li>
                        <li><a href="#" class="iconfont icon-zhankai">我的品优购</a></li>
                        <li></li>
                        <li><a href="#">品优购会员</a></li>
                        <li></li>
                        <li><a href="#">企业采购</a></li>
                        <li></li>
                        <li><a href="#" class="iconfont icon-zhankai">关注品优购</a></li>
                        <li></li>
                        <li><a href="#" class="iconfont icon-zhankai">客户服务</a></li>
                        <li></li>
                        <li><a href="#" class="iconfont icon-zhankai">网站导航</a></li>
                    </ul>
                </div>
            </div>
        </section>
    

    common.css

    .fl {
        float: left;
    }
    
    .fr {
        float: right;
    }
    
    .w {
         1200px;
        margin: 0 auto;
    }
    
    .style_red {
        color: #C81623;
    }
    
    
    /* shortcut部分 */
    
    .shortcut {
        height: 31px;
        line-height: 31px;
        background-color: #F1F1F1;
    }
    
    .shortcut li {  /*float不继承*/
        float: left;
    }
    
    .shortcut .fr ul li:nth-child(even) {
         1px;
        height: 12px;
        background-color: #666;
        margin: 9px 15px 0;
    }
    
    
    /* 字体图标 */
    
    @font-face {
        font-family: "iconfont";
        src: url('//at.alicdn.com/t/font_2269940_s3bmewe0hbn.eot?t=1608266658007');
        /* IE9 */
        src: url('//at.alicdn.com/t/font_2269940_s3bmewe0hbn.eot?t=1608266658007#iefix') format('embedded-opentype'), /* IE6-IE8 */
        url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAPAAAsAAAAACCgAAANxAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDHAqDZIMpATYCJAMQCwoABCAF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vtC3mL3YNDqOyCv+qVTw61cs338SMQBxzSDC/DiZKUIrNXDEhpphQGJ9aBDrVxXfbu8cX7DHdDHvC6jRI2Mjup2UEtWcag87d/dBCwLtqIAAAAA') format('woff2'), url('//at.alicdn.com/t/font_2269940_s3bmewe0hbn.woff?t=1608266658007') format('woff'), url('//at.alicdn.com/t/font_2269940_s3bmewe0hbn.ttf?t=1608266658007') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
        url('//at.alicdn.com/t/font_2269940_s3bmewe0hbn.svg?t=1608266658007#iconfont') format('svg');
        /* iOS 4.1- */
    }
    
    .iconfont {
        font-family: "iconfont" !important;
        /* font-size: 16px; */
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .icon-zhankai1:before {
        content: "e809";
    }
    
    .icon-gouwuche:before {
        content: "e611";
    }
    
    .icon-zhankai:after {
        content: "e690";
    }
    
  • 相关阅读:
    postgresql 排序索引
    postgresql 外键约束是否自动索引,unique约束是否自动建索引,主键是否自动建索引
    nginx缓存失效--vim选择后u将所有大小转换为了小写
    linux内核参数调优
    如何让自己的网站在搜索引擎中出现
    linux 查看系统版本
    nginx 模板
    深浅拷贝2
    字典 综合逻辑
    字典 dict
  • 原文地址:https://www.cnblogs.com/icemiaomiao3/p/14165005.html
Copyright © 2011-2022 走看看