手机端 滑动门(选项卡)+二级联动 筛选功能

本文记录了一种手机端滑动门(选项卡)配合二级联动筛选功能的实现过程。在项目需求推动下,经过努力并在大神帮助下完成,为防止遗忘,作者分享了实现细节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近因为项目需求,需要一个筛选功能,由于技术有限,搞了两天也没搞出来,最后还是在一位大神的帮助下实现了这个功能,防止时间长了忘记,在这里记录一下。

一. html/css代码

<style>
    .select{
        width:100%;
        height:40px;
        line-height: 40px;
        text-align:center;
        background:#fff;
        border-bottom: 1px solid #e6e6e6;
        position:fixed;
        z-index: 15;
        }
    .select ul li{
            float:left;
            width:33.1%;
            height:40px;
            color: #8f8f8f;
            text-align: center;
            border-right:1px solid #e6e6e6;
        }
    .select ul li:last-child{
            border-right:none;
        }
    .select ul li span{
            width:15px;
            height:15px;
            display:inline-block;
            position:relative;
            top: 2px;
            left: 2px;
            background:url(img/xiala.png) no-repeat center;
            background-size: 12px;
        }
    .select_con{
            width: 100%;
            height: 100%;
            position: fixed;
            bottom: 0px;
            z-index: 10;
            background: rgba(0,0,0,.5);
            display: none;
            top: 81px;
        }
    .tab_con{
            width: 100%;
            float: left;
            z-index: 999;
            min-height: 40px;
            position: relative;
        }
    .select_con ul li{
            height:40px;
            line-height:40px;
            text-align:left;
            text-indent:20px;
            border-bottom:1px solid #e6e6e6;
        }
    .select_con_left{
            width:50%;
            max-height: 328px;
            float:left;
            background:#FFF;
            overflow:scroll;
        }
    .select_con_middle{
            width:100%;
            max-height: 328px;
            background:#FFF;
            overflow:scroll;
        }
    .select_con_right{
            width:50%;
            max-height: 328px;
            float:left;
            background:#f2f2f2;
            overflow
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值