我想在所有瀏覽器的select元素的右側有我自己的箭頭圖標。我試圖使用僞元素:after
,但它不起作用。如何用我自己的箭頭向下圖標製作<select>元素?
select {
position: relative;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
&:after {
content: 'f175';
font-size: 12px;
position: absolute;
z-index: 999;
top: 0px;
right: 13px;
}
}
<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>