关于火狐IE浏览器select样式问题

1.可用:

<style type="text/css">
select {
    /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
    border: solid 1px #000;
    /*很关键:将默认的select选择框样式清除*/
    appearance:none;
    -moz-appearance:none;
    -webkit-appearance:none;
    /*在选择框的最右侧中间显示小箭头图片*/
    background: url('../static/img/arrow.png') no-repeat scroll right center transparent !important;
    /*为下拉小箭头留出一点位置,避免被文字覆盖*/
    padding-right: 14px;
}
/*清除ie的默认选择框样式清除,隐藏下拉箭头*/
select::-ms-expand { display: none; }
</style>

小箭头图片网址:http://ourjs.github.io/static/2015/arrow.png

(失败的话加!important 试试)

2.或 直接在div中写style:

style="height: 40px;
          border: 1px solid #e5e6e7;
          appearance:none;
          -moz-appearance:none;
          -webkit-appearance:none;
          padding-right: 14px;
          background: url('../static/img/arrow.png') no-repeat scroll right center transparent;
          ::-ms-expand { display: none;} "
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值