Html
    Css
    Js

    
                        
 .mod_select {
	position:absolute;
	left:30%;
	top:100px;
	font-familY:Arial,Helvetica,sans-serif;
}
.mod_select ul {
	margin:0;
	padding:0;
}
.mod_select ul li {
	list-style-type:none;
	float:left;
	margin-left:20px;
	height:24px;
}
.select_label {
	color:#982F4D;
	float:left;
	line-height:24px;
	padding-right:10px;
	font-size:12px;
	font-weight:700;
}
.select_box {
	float:left;
	border:solid 1px #EDE7D6;
	color:#444;
	position:relative;
	cursor:pointer;
	width:165px;
	background:url(../select_bg.jpg) repeat-x;
	font-size:12px;
}
.selet_open {
	display:inline-block;
	border-left:solid 1px #E5E5E5;
	position:absolute;
	right:0;
	top:0;
	width:30px;
	height:24px;
	background:url(../select_up.jpg) no-repeat center center;
}
.select_txt {
	display:inline-block;
	padding-left:10px;
	width:135px;
	line-height:24px;
	height:24px;
	cursor:text;
	overflow:hidden;
}
.option {
	width:165px;
	border:solid 1px #EDE7D6;
	position:absolute;
	top:24px;
	left:-1px;
	z-index:2;
	overflow:hidden;
	display:none;
}
.option a {
	display:block;
	height:26px;
	line-height:26px;
	text-align:left;
	padding:0 10px;
	width:100%;
	background:#fff;
}
.option a:hover {
	background:#FDE0E5;
}

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

div模拟下拉框

0