Html
    Css
    Js

    
                        
ul,li {
	margin:0;
	padding:0;
}
#main {
	width:200px;
	height:400px;
	border:1px solid #ccc;
}
#search_content {
	max-height:200px;
	overflow-y:scroll;
}
#search_list .li-hover {
	color:#fff;
	background-color:#1e90ff;
}
#search_list .li-list {
	cursor:pointer;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.1
 立即下载

input和ul代替的模糊查询下拉框

input代替select下拉框,并可实现模糊查询

0