栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > JavaScript

原生javascript实现的选取搜索组件

JavaScript 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

原生javascript实现的选取搜索组件

  1. 代码:

    document    .select_text{        width:30%;        height: 20px;        padding: 8px;        border-radius: 5px;        color: grey;    }    .select_text:focus{        border-color: green;        box-shadow: 0px 0 5px grey;    }    .select_span{        position: relative;        left: -2%;        cursor: pointer;    }    .select_ul{        display: none;        width: 27%;        padding: 25px;        margin: 0;        height: 25vh;        border: 1px solid grey;        overflow: auto;    }    .select_li:hover{        background: green;    }