在做下拉框select的時候用一個箭頭符號,作為下拉框的三角,在firefox和chrome下均可以正常顯示,但是在IE下無法顯示。
查找了很久,發現是圖片格式問題,把png格式的轉換成gif的就沒有問題了。。。。
附相關代碼,主要是html的:
<style type=”text/css”>
.select{ width:180px; height:29px; overflow:hidden; border:solid 1px #339999; border-radius:5px; background:url(images/arrow.gif) no-repeat 137px 0px;}
.select-style select{ padding:2px; background:transparent; width:200px; font-size: 16px; border:none; height:24px; -webkit-appearance: none; appearance:none;}
</style>
<div class=”select”>
<div class=”select-style”>
<select name=”select”>
<option>hello</option>
<option>you</option>
<option>apple</option>
<option>good</option>
</select>
</div>
</div>
新聞熱點
疑難解答