请教selec标签在火狐浏览器下兼容的问题

select标签在火狐浏览器下出现了这种情况请大神指教代码如下:select {background:url(../images/index/index_16.png) no-repeat top center; width:128px; height:25px;margin: 0; padding:0;border:none;*border:0;outline:none;display: inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;*appearance:none;cursor:pointer;}option{width:128px;height:25px;margin: 0; padding:0; -webkit-width:128px; -webkit-height:25px; -moz-width:128px; -moz-height:25px;cursor:pointer;outline:none;display:block; overflow:hidden; -webkit-appearance:none;-moz-appearance:none;appearance:none;}
2026年09月23日 19:10
有2个网友回答
网友(1):

option的width设为100%或者干脆不设置它的宽度。

网友(2):

  您好!很高兴为您答疑。
  出现此情况是因为您的下拉选项的预置宽度超出了您给下拉控件主对象的预置宽度所致。或者您可以去掉预置的宽度,让其自动设置。
  如果对我们的回答存在任何疑问,欢迎继续问询。