京东上侧引导条(含下拉窗口)

京东网页样式

 成果:

 代码:

<!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>京东</title>
   <link rel="stylesheet" href="./reset.css">
   <link rel="stylesheet" href="../summer7/fa/css/all.css">
    <style>
 @font-face {
  font-family: 'iconfont';  /* Project id 2665067 */
  src: url('//at.alicdn.com/t/font_2665067_yeteqkufc48.woff2?t=1625926852312') format('woff2'),
       url('//at.alicdn.com/t/font_2665067_yeteqkufc48.woff?t=1625926852312') format('woff'),
       url('//at.alicdn.com/t/font_2665067_yeteqkufc48.ttf?t=1625926852312') format('truetype');
}
       ul{
            height: 30px;
            background-color: rgba(96, 96, 96, 0.3);

        }
    
    
        .zuo a::before{
           
            content: '\e62b';
            font-family: 'iconfont';
            color: red;
            font-size:15px;
        }
        .zuo{
             float:left;
             position: relative;
           

             z-index:1;
             margin-left: 80px;
        }
        .you{
            float: right;
          
        }
        li a{
            display: block;
            text-decoration: none;
            color:grey;
            font-size: 12px;
            line-height: 30px;
            text-align:center;
            padding-right: 20px ;
            font-family:'宋体',monospace;
           
            
            
            margin-left: 30px;
        
        }
        li a:hover{
            color: red;
        }
    
        ul .you:nth-child(2) a{
        margin-right: 70px;
      }
      ul .you:nth-child(8) a{
        color: red;
      }
      ul .you:nth-child(16) a{
          color: red;
      }
      ul .you:nth-child(17) a{
         margin-right: -40px;
         width: 70px;
      }
      ul .you:nth-child(8) a::after,ul .you:nth-child(12) a::after, ul .you:nth-child(6) a::after,ul .you:nth-child(4) a::after
      {
        content:'\e681';
        font-family: 'iconfont';
        color: gray;
       
    }
   li:nth-last-of-type(4):hover,li:nth-of-type(1):hover, li:nth-of-type(4):hover, li:nth-of-type(3):hover,li:nth-of-type(5):hover {
       border:1px solid white;
       border-bottom: none;
       padding-bottom: 0px;
    background-color: white;
   }
   
    span{
        
        float: right;
        color:gray;
        font-size:5px;
            line-height: 30px;
    }
    div{
        /* display: none; */
        display: none;
        width: 320px;
        height: 439px;
        background-color: white;
        border: 1px black solid;
        border-top: gray;
        position:absolute;
      
        left: -1px;
        top:29px;
        
       
        
    }

    div span{
        color:transparent;
    }
   .zuo:hover div{
       display: block;
       
    }

    </style>
    
</head>

<body>
   <ul>
       <li class="zuo">
        <a class="sh" href="#"> 上海</a>
        <div>上海 北京</div>
        
       </li>
     
       
       <li class="you">
        <a href="#">手机京东</a>
       
          </li>
          <span>|</span>
       <li class="you">
        <a href="#">网站导航</a>
      
       </li>
       <span>|</span>
       <li class="you">
        <a href="#">客户服务</a>
          </li>
          <span>|</span>
       <li class="you">
        <a href="#">企业采购</a>
         </li>
         <span>|</span>
       <li class="you">
        <a href="#">京东会员</a>
       </li>
       <span>|</span>
       <li class="you">
        <a href="#">我的京东</a>
    </li>
    <span>|</span>
       <li class="you">
        <a href="#">我的订单</a> 
     </li>
     <span>|</span>
       <li class="you">
        <a href="#">免费注册</a>
           </li>
           
       <li class="you">
        <a href="#"> 你好,请登录</a>
     </li>
    </ul>
</body>
</html>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值