jq 下拉框

    <div class="alls">
            <div class="item">
                <div class="all">
                    <span class="alla">选择span>
                    <span>
                        <div class="coinbig-c2c-sanj">div>                        
                    span>
                div>

                <div class="son">
                    <div class="son-input">
                        <img class="imgst" src="img/Group-2-copy.svg">
                        <input class="leftop" type="text">
                    div>
                    <div class="son1">
                        <div class="as">00000000div>
                        <div class="as">11111111div>
                        <div class="as">22222222div>
                        <div class="as">33333333div>
                        <div class="as">44444444div>
                        <div class="as">55555555div>
                        <div class="as">66666666div>
                    div>
                div>
            div>

        div>
    .all {
                width: 100%;
                height: 46px;
                display: block;
                position: relative;
                color: rgba(255,255,255,1);
            }
            
    
            
            .item {
                width: 100%;
                height: 100%;
                background: #2b4071;
                line-height: 48px;
                border-left: 1px solid #2a404f;
                cursor: pointer;
                border: 1px solid #2f4a64;
                border-radius: 3px;
            }
            
            .alla {
                margin-left: 10px;
                font-size: 18px;
                position: relative;
                font-size: 14px;
            }
            
            .as {
                padding-left: 10px;
                font-size: 14px;
            }
            
            .as:hover {
                background: #495689;
            }
            
            .son {
                width: 100%;
                display: none;
                background-color: #15284c;
                position: absolute;
                top: 48px;
                z-index: 1;
            }
            
            .item {
                position: relative;
            }
            
            .coinbig-c2c-sanj {
                width: 0;
                height: 0;
                border-width: 7px;
                border-style: solid;
                border-color: #ffffff transparent transparent transparent;
                background: #2b4071;
                position: absolute;
                right: 9px;
                top: 20px;
            }
            
    
            
            .zida {
                font-size: 18px;
            }
            
            
            
            .sonall {
                width: 100%;
                top: 48px;
            }
            
        
            
            .imgst {
                float: right;
                width: 16px;
                height: 16px;
                margin-top: 12px;
                margin-right: 10px;
            }
            
            .leftop {
                float: left;
                width: 80%;
                height: 100%;
                border: none;
            
                background: #15284c;
                color: #FFFFFF;
                padding-left: 10px;
                box-sizing: border-box;
            }
            
            .son-input {
                width: 90%;
                height: 40px;
                border: 1px solid #495d9a;
                margin: 10px auto;
            }
            
            .son1 {    
                overflow-y: auto;
                max-height: 192px;
                color: #EEEFF7;
            }
            
            .son1::-webkit-scrollbar {
                width: 3px;
                height: 0px;
            }
        
            .son1::-webkit-scrollbar-button {
                background-color: #15284c;
            }    
            .son1::-webkit-scrollbar-track {
                background: #15284c;
            }
            
            .son1::-webkit-scrollbar-thumb {
                background: #2a404f;
                border-radius: 10px;
            }
            
            .son1::-webkit-scrollbar-corner {
                background: #2a404f;
            }            
            .alls {
                width: 300px;
            }

 

转载于:https://www.cnblogs.com/chen527/p/11063617.html

你可能感兴趣的:(jq 下拉框)