css布局实现手机端手机端下拉菜单筛选效果代码

代码语言:html

所属分类:菜单导航

代码描述:css布局实现手机端手机端下拉菜单筛选效果代码

代码标签: 手机 手机 下拉菜单 筛选 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
@CHARSET "UTF-8";
        /*默认样式*/
        html {
            font-size: 4vw;
            height: 100vh;
        }
        * {
            margin: 0;
            padding: 0;
            outline: none;
        }
        *:not(input, textarea) {
            -webkit-
            -callout: inherit;
            -webkit-user-select: auto;
        }
        body {
            font-family: "Arial", "微软雅黑", "宋体";
            font-size: 1rem;
            color: #333;
            -webkit-
            -callout: inherit;
            -webkit-user-select: auto;
            margin: auto;
            height: 100vh;
        }
        a {
            color: #54d09e;
            text-decoration: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }
        a:hover {
            text-decoration: none;
        }
        button, input, select, textarea {
            font-size: 100%;
            margin: 0;
            padding: 0;
            outline: none;
        }
        textarea, input {
            resize: none;
            outline: none;
        }
        textarea {
            resize: none;
            -webkit-appearance: none;
        }
        ul, ol, li {
            list-style: none;
        }
        em {
            font-style: normal;
        }
        input[type=button] {
            -webkit-appearance: none;
            outline: none
        }


        h1,h2,h3,h4,h5,h6 {
            font-weight: normal;
        }
        b {
            font-weight: normal;
        }
        .clear {
            clear: both;
            font-size: 0;
            line-height: 0;
            height: 0;
        }

        /**下拉**/
        .topmenu {
            width: 100%;
        }
        .topmenu dt {
            width: 33.3%;
            float: left;
        }
        .selectlist {
            width: 100%;
            height: auto;
            box-sizing: border-box;
        }
        .select_textdiv {
            height: 3rem;
            width: 100%;
            line-height: 3rem;
            text-align: center;
            border-bottom: 2px solid #b3b3b3;
            position: relative;
            border-left: 2px solid -webkit-linear-gradient(red, blue);
        }
        .select_textul {
            width: 100%;
            line-height: 3rem;
            box-sizing: border-box;
            display: none;
            width: 980px;
            max-height: 20rem;
            overflow-y: scroll;
        }
        .select_first_ul {
            width: 100%;
            /*background: #eaeaea;*/
            position: absolute;
            box-sizing: bord.........完整代码请登录后点击上方下载按钮下载查看

网友评论0