【发布时间】:2012-03-07 21:14:49
【问题描述】:
我想设置一个选择的样式,它几乎可以完美地工作,但在谷歌浏览器上的行为是不同的,我用-webkit-appearance: none; 修复了这个问题,但这个删除也选择了箭头。
我尝试为我的选择设置一个箭头,但它在 chrome 中不可见,因为我使用多个背景。我该怎么做才能在 chrome 上设置那个箭头。
select{
width:120px;
margin:10px;
background:url(http://s14.postimage.org/jls6v1ywt/select_background.png),
url(http://s13.postimage.org/edsg65ss3/select_arrow.jpg);
background-position: center center,100% 53%;
background-repeat: repeat-x, no-repeat;
border:1px solid #DDDBD7;
-webkit-appearance: none;
}
查看我的示例:
【问题讨论】:
标签: html css google-chrome select