文本垂直对齐在选择框中 - Firefox问题

for*_*kie 8 css firefox select vertical-alignment

我在Firefox中选择框标题的垂直对齐问题.

来自Firefox的屏幕

用于选择的CSS看起来像这样:

select#cities_list {
    width: 95px;
    height: 45px;
    line-height: 45px;
    background: url('./img/select-arrow.png') no-repeat right transparent;
    -webkit-appearance: none;
    border: 1px solid #dcdcdc;
    border-left: none;
    border-right: none;
    padding: 0 10px;
    margin: 0;
    float: left;
}
Run Code Online (Sandbox Code Playgroud)

在Chrome中一切都很好:

在此输入图像描述

救命!

nir*_*pam 14

你可以试试这个

padding:.3em;/.4em;
Run Code Online (Sandbox Code Playgroud)

取决于您的配置.

  • 那是什么呀?我只是试过这个,它在很大程度上起作用了.这是什么黑客? (6认同)