设置css样式背景色透明 字体颜色的不透明 设置select 箭头样式

background:rgba(4, 18, 50, 0.55) none repeat scroll !important; /*实现FF背景透明,文字不透明*/
background:#041232; filter:Alpha(opacity=55);/*实现IE背景透明*/


先隐藏箭头,然后给箭头部分添加一个背景色,下拉块的背景色为#04173b
-webkit-appearance:  none;
-moz-appearance: none;
appearance: none;
background: #04173b url("../images/select.png") no-repeat;
width: 102px;
height: 31px;

select::-ms-expand { display: none;} 隐藏箭头
 
posted @ 2018-06-30 16:11  yaomengli  阅读(3324)  评论(0编辑  收藏  举报