• 移动端滑动选项卡


    内层宽度超过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>
  • 相关阅读:
    IOS开发学习笔记029-反选、全选、删除按钮的实现
    IOS开发学习笔记028-UITableView单组数据显示代码优化
    IOS开发学习笔记027-UITableView 使用模型对象
    IOS开发学习笔记026-UITableView的使用
    关于博客搭建的惨痛经历
    Kettle在windows上安装
    Java实现Excel数据批量导入数据库
    Saiku导出excel指标列无线条以及0与空值显示问题(三十二)
    Saiku默认给数据类型的数据添加小数点问题处理(三十一)
    Saiku上线部署准备(三十)
  • 原文地址:https://www.cnblogs.com/hellman/p/5530520.html
Copyright © 2020-2023  润新知