0
這是什麼樣子的鍍鉻:FF VS鉻:無法弄清楚,爲什麼我的選擇看起來不同
這就是它看起來像在FF:
這是我已經應用到這個元素的CSS:
.styled-select5 {
margin-left: 20px;
height: 12px;
border: 1px solid #cccccc;
overflow: hidden;
width: 104px;
z-index: 1;
background: url(/images/registration/triangle.png) no-repeat right white;
display: block;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.styled-select5 select {
padding-right: 42px;
background: none repeat scroll 0 0 transparent;
-webkit-appearance: none;
-moz-appearance: none;
text-indent: .01px;
text-overflow: '';
border: none !important;
width: 110% !important;
overflow: hidden;
z-index: 5;
height: 14px;
display: block;
padding-left: 3px;}
.styled-select5 select::-ms-expand{
display: none;}
.styled-select5 select option {
height: 20px;
width: 400px; }
.styled-select5.hidden {
display: none; }
我一直在試圖弄清楚這一點。爲了讓它們看起來相似,我必須更改FF中的填充以使文本正確顯示。我不知道爲什麼會發生這種情況。在鉻和FF這樣做有什麼不同嗎?
您是否嘗試過設置'line-height'? – Morpheus
我認爲這與截斷文本沒有任何關係。 –
我不認爲你在你的問題中解釋了問題,這就是爲什麼我認爲你想要中間的文字。 – Morpheus