只是我有下拉影像解决方案(inline svg)
select.form-control {
-webkit-appearance: none;
-webkit-border-radius: 0px;
background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>");
background-position: 100% 50%;
background-repeat: no-repeat;
}
替代(如上面的一个不与最新的工作火狐)
select.form-control {
-webkit-appearance: none;
-moz-appearance: none;
-webkit-border-radius: 0px;
background-image: url("https://image.flaticon.com/icons/svg/60/60781.svg");
background-position: 99% 50%;
background-repeat: no-repeat;
background-size: 16px;
}
我正在使用b这就是为什么我使用select.form-control
您可以使用select{
或select.your-custom-class{
代替。
你还可以发布代码吗?如果使用jsfiddle.net发布它,效果会更好。 – ngen 2011-04-25 15:45:42
我其实没有任何边框半径作为Win7上Chrome 10的默认样式,也许这是另一个版本或操作系统? – 2011-04-25 15:53:08
Windows 7上的Chrome 12中没有圆角。 – andyb 2011-04-25 16:02:25