zoukankan      html  css  js  c++  java
  • 移动端滑动选项卡

    内层宽度超过50%;第二个覆盖第一个;

    .departments .gradeA,.departments .gradeB{ 100%; height: 100%; position: absolute;}
    .departments .gradeA .list,.departments .gradeB .list{ 100%; height: 100%; overflow: auto; }

    .departments .gradeA{z-index: 1; background: #f0f0f0;}

    .departments .gradeB{left: 50%; z-index: 2; background: #fff;}

    .departments{width: 100%; height: 100%; position: fixed; font-size: .6rem;}
    .departments .gradeA,.departments .gradeB{width: 100%; height: 100%; position: absolute;}
    .departments .gradeA .list,.departments .gradeB .list{width: 100%; height: 100%; overflow: auto; }
    .departments .gradeA .list li,.departments .gradeB .list li{width: 100%; height: 1.8rem; line-height: 1.8rem; }
    .departments .gradeA{z-index: 1; background: #f0f0f0;}
    .departments .gradeA .list li{text-indent: 1.6rem; border-bottom: 1px solid #ddd;}
    .departments .gradeA .list .current{background: #fff; background: #fff url(../images/WeChatTriangle.png) no-repeat .6rem .7rem; background-size: .32rem .4rem;}
    .departments .gradeA .list a{color: #222;}
    .departments .gradeB{left: 50%; z-index: 2; background: #fff;}
    .departments .gradeB .list li{text-indent: 1.3rem; border-bottom: 1px solid #fff;}
    .departments .gradeB .list a{color: #666;}
    <div class="departments">
                <div class="gradeA">
                    <ul class="list">
                        <li class="current"><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="gradeB">
                    <ul class="list">
                        <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>
  • 相关阅读:
    PostgreSQL 数据库备份与恢复 pd_dump pg_restore
    给数据库减负的7个技巧
    添加二级域名 配置多站点 阿里云
    PHP 循环输出多重数组元素
    CentOS 7 yum Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile
    CentOS 7 配置 nginx php-fpm 详细教程
    Centos7 卸载 Nginx 并重新安装 Nginx
    centos7 取消自动锁屏
    composer 安装以及使用教程
    MacBook Pro设置外接显示器竖屏显示 切换主显示器
  • 原文地址:https://www.cnblogs.com/hellman/p/5530520.html
Copyright © 2011-2022 走看看