答案 0 :(得分:0)
试试这个:
select {
-webkit-appearance: none;
-moz-appearance: none;
background: transparent;
background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
background-repeat: no-repeat;
background-position-x: 100%;
background-position-y: 5px;
border: 1px solid #dfdfdf;
border-radius: 2px;
margin-right: 2rem;
padding: 1rem;
padding-right: 2rem;
}
<select name="" size="1">
<option value="wybierz z listy">wybierz z listy</option>
<option value="Normal">Normal</option>
<option value="High">High</option>
<option value="Emergency">Emergency</option>
</select>
答案 1 :(得分:0)
只需从您的CSS中删除以下样式即可使用
-webkit-appearance: none;
-moz-appearance: none;
答案 2 :(得分:0)
您可以使用以下图片
select {
position: relative;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
padding: 5px;
width: 120px;
background: transparent url("http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png") no-repeat right center;
}
&#13;
<select name="" size="1">
<option value="wybierz z listy">wybierz z listy</option>
<option value="Normal">Normal</option>
<option value="High">High</option>
<option value="Emergency">Emergency</option>
</select>
&#13;