zoukankan      html  css  js  c++  java
  • 实用:滑动门tag切换

    css:

     1 *{ margin:0; padding:0; list-style:none; font-size:12px;}
     2 a{ text-decoration:none; color:#333;}
     3 #wrap{ position:relative; width:330px; height:220px; margin:20px auto;}
     4 #wrap .title{ position:relative; width:100%; overflow:hidden;}
     5 .title li{ display:block; float:left; padding:0 0 0 5px; margin:0 5px 0 0; background:url(img/tag_left.gif) left 0 no-repeat;}
     6 .title li a{ display:block; padding:6px 15px 3px 10px; background:url(img/tag_right.gif) right 0 no-repeat; text-align:center; }
     7 .title li.now{ background-position:0 -23px;}
     8 .title li.now a{ background-position:right -23px; font-weight:700;}
     9 .cont{ margin:-1px 0 0; width:308px; padding:10px; border:1px solid #d0d0d0; overflow:hidden; z-index:-100;}
    10 .cont li{ margin:0 0 5px 0;}

    xhtml:

    Code

    js:

    Code

    好了就这么多了,不想解释了,自己看吧,很简单~~哈哈

    demo下载

  • 相关阅读:
    How to use VS2012 remote debug Windows Azure Cloud Services
    vue ---05 分页和详情页功能的实现
    vue ----04课程列表的展示
    vue--03 首页和登陆注册
    luffy--03 首页和登陆注册(跨域问题的解决)
    luffy--02 ---项目配置和数据库链接
    luffy---01
    DRF---一些配置/设置
    drf-路由
    drf视图
  • 原文地址:https://www.cnblogs.com/rere/p/1437085.html
Copyright © 2011-2022 走看看