码迷,mamicode.com
首页 > 其他好文 > 详细

去除selet标签默认样式

时间:2017-08-25 01:14:26      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:标签   scroll   覆盖   repeat   箭头   pre   center   parent   hub   

select {
  /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
  border: solid 1px #000;

  /*很关键:将默认的select选择框样式清除*/
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;

  /*在选择框的最右侧中间显示小箭头图片*/
  background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;


  /*为下拉小箭头留出一点位置,避免被文字覆盖*/
  padding-right: 14px;
}

去除selet标签默认样式

标签:标签   scroll   覆盖   repeat   箭头   pre   center   parent   hub   

原文地址:http://www.cnblogs.com/sunny-539/p/7425834.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!