【问题标题】:How to remove the drop down arrow in mozilla firefox如何在 Mozilla Firefox 中删除下拉箭头
【发布时间】:2014-09-02 19:31:35
【问题描述】:

如何删除 FireFox 通常显示的下拉箭头?我在下面上传了一张我正在使用的图片:

我正在使用这个 css:

@-moz-document url-prefix(){
  .class select { width: 110%; }
}

.class > select {
    -moz-appearance: none !important;
    text-indent: 0.01px !important;
    text-overflow: "" !important;
}

请帮我解决这个问题。

【问题讨论】:

标签: html css firefox


【解决方案1】:

这个技巧在 2014 年 6 月 10 日发布的 Firefox 30 中停止工作。 您可以upvote the bug on Bugzilla 进行最终修复。

选项 1: 仅通过 url-prefix 媒体查询删除 Firefox 上的自定义样式,例如:

    @-moz-document url-prefix() {
       select {
       background-image: none;
    }

选项 2:

这是solution

【讨论】:

    【解决方案2】:

    那是不可能的。最好的方法是伪造它并创建您自己的自定义<select>。

    看看我创建的这个小提琴http://jsfiddle.net/JayKandari/FWLRw/5/

    【讨论】:

      猜你喜欢
      • 2014-08-17
      • 2017-08-11
      • 2020-01-22
      • 2021-12-06
      • 2016-11-29
      • 2020-11-25
      • 1970-01-01
      • 2022-10-02
      • 2013-05-24
      相关资源
      最近更新 更多