Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
	list-style:none;
	box-sizing:border-box;
}
.drop {
	width:300px;
	height:auto;
	margin:100px auto;
}
.drop-header {
	width:100%;
	padding:5px 10px;
	border:#c7c7c7 1px solid;
	word-wrap:break-word;
	min-height:32px;
}
.drop-header span {
	position:relative;
	display:inline-block;
	padding-right:5px;
	padding-left:5px;
	margin:1px 5px 1px;
	line-height:20px;
	background-color:#a9a9a9;
	color:#fff;
	cursor:pointer;
}
.drop-dwon {
	position:absolute;
	width:100%;
	height:auto;
	line-height:25px;
	border:#c7c7c7 1px solid;
	box-shadow:#c7c7c7 1px 1px 4px;
	max-height:200px;
	overflow-y:auto;
	overflow-x:hidden;
}
.drop-dwon li {
	padding:5px 10px;
	cursor:pointer;
}
.drop-dwon li:hover,.drop-dwon li.active:hover {
	color:#fff;
	background-color:#18717b;
}
.drop-dwon li.active {
	color:#fff;
	background-color:#07a4b5;
}

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

jQuery多选下拉框

2
      哎呀我去哪儿呢0
      2017/7/3 10:02:53
      用户体验不好
          williamdream0
          2017/7/8 10:15:10

          可以看看这个,稍微好点http://www.jq22.com/jquery-info5428

      回复