css样式美化 下拉框 select 样式

≯℡__Kan透↙ 提交于 2020-01-10 06:56:48
本文转载自:https://www.cnblogs.com/dazhangli/p/6428039.html 作者:dazhangli 转载请注明该声明。
                                     <span class="setleft wid80"><span class="fyhbx">*</span>入库类型 :</span>
                                            <div class=" posirelative select-out-div">
                                                <select class="m-wrap  "  style="width: 180px; padding: 2px 0;">
                                                    <option value="0">采购</option>
                                                    <option value="1">返货</option>
                                                    <option value="2">移库入货</option>
                                                </select>
                                                <span class="select-hide-span" >
                                                    <b class="select-show-b"  ></b></span>
                                            </div>
.posirelative {
    position: relative;
}
.select-out-div {
    width: 160px;
    overflow: hidden;
}
select.m-wrap {

    background-color: #ffffff;
    background-image: none !important;
    filter: none !important;
    border: 1px solid #e5e5e5;
    outline: none;
    height: 25px !important;
    line-height: 25px;
}
.select-hide-span {
    height: 25px;
    position: absolute;
    top: 0;
    border-right: 1px solid #e5e5e5;
    right: 0;
    width: 20px!important;
    z-index: 999;
}
.select-show-b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: 10px;
    position: absolute;
}

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!