修改select下拉框默认样式

/*将默认的select选择框样式清除*/

appearance:none;

-moz-appearance:none;

-webkit-appearance:none;

/*在选择框的最右侧中间显示小箭头图片*/

background:url("../images/small-arrow-down.png")97%no-repeat;

background-size:7px5px;

/*为下拉小箭头留出一点位置,避免被文字覆盖*/

padding-right:14px;

text-align:center;

/*清除ie的默认选择框样式清除,隐藏下拉箭头*/

select::-ms-expand{display:none; }

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容