select選擇框去掉默認的下拉箭頭


select下拉框有一個下拉箭頭樣式,可以使用appearance-ms-expand去掉這個樣式。

代碼如下:

.not-arrow{

padding: 5px 10px;

border:1px solid #dcd8d8;

-webkit-appearance:none;

-moz-appearance:none;

appearance:none; /*去掉下拉箭頭*/

/*在選擇框的最右側中間顯示小箭頭圖片*/
background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;

}

/*清除ie的默認選擇框樣式清除,隱藏下拉箭頭*/

.not-arrow::-ms-expand { display: none; }


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM