这次的select是纯CSS,所以只是改头换面,不像之前都“洗心革面”了……

最终效果如下:

HTML代码:

               <div class="feedback-dropdownlist">
                   <select class=" selectOptionPlaceholder" id="site-dialog-feedback-os" >
                       <option class="option-placeholder" value=''>操作系统...</option>
                       <option value='WindowsXP'>Windows XP</option>
                       <option value='Windows7'>Windows 7</option>
                       <option value='Windows8'>Windows 8</option>
                       <option value='MacOS'>Mac OS</option>
                       <option value='Linux'>Linux</option>
                       <option value='other'>其他</option>
                   </select>
                   <div class='feedback-dropdownlist-arrow'><em></em></div>
               </div>

CSS代码:

.feedback-dropdownlist{
	display: inline-block;
	position: relative;
	width: 48%;
	height: 35px;
	overflow: hidden;
	background-color: #fff;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.7) inset, 1px 1px 8px rgba(0,0,0,.2);
	-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.7) inset, 1px 1px 8px rgba(0,0,0,.2);
	box-shadow: 1px 1px 2px rgba(0,0,0,.7) inset, 1px 1px 8px rgba(0,0,0,.2);
	padding: 2px 2px 0 2px;
}
.feedback-dropdownlist select{
	position: relative;
	z-index: 2;
	width: 130%;
	height: 33px;
	-webkit-appearance: none;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: transparent;
	background: rgba(0, 0, 0, 0);
	padding-left: 8px;
}
.feedback-dropdownlist select:focus {
  width: 100%;
  outline: none;
}
.feedback-dropdownlist-arrow{
	position: absolute;
	z-index: 1;
	top: 2px;
	right: 0;
	-webkit-border-radius: 0 5px 5px 0;
	-moz-border-radius: 0 5px 5px 0;
	border-radius: 0 5px 5px 0;
	width: 30px;
	height: 35px;
	border-left: 1px solid #d2d2d2;
}
.feedback-dropdownlist-arrow em{
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -8px;
	margin-top: -4px;
	border-width: 8px;
	border-style: solid dashed dashed;
	border-color: #d2d2d2 transparent transparent;
}