更改选择下拉菜单的默认插入符号

时间:2015-07-03 08:23:58

标签: html css

我们可以通过哪种方式更改下拉默认插入符号。我在网上找到了一个解决方案,通过它我们可以做到这一点,但这需要在后台加载图像。下面是我用过的css

但我正在寻找一种解决方案,通过该解决方案,图像可以替换为一些文本内容,如字体真棒和其他字体库。任何帮助表示赞赏。

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right;
    background-size: 9px;
    padding-right: 22px !important;
    background-image: url('http://cache.freescale.com/files/graphic/other/UP_DOWN_ARROW.jpg');
    padding: 0px 10px 0px 0px !important;
    height: 32px;
}

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

0 个答案:

没有答案