我正在尝试设计一个<select>-Field。
(这是一个仅限 IE10 的页面,所以互操作性只是我的第二个关注点......)
使用:
select
{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url(images/select-open.png), linear-gradient(#e3dfdb 50%, #d3cec8);
  background-position: right center;
  background-repeat: no-repeat;
  border: solid 1px #adadad;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  padding-bottom: 3px;
  padding-left: 3px;
  padding-right: 20px;
  padding-top: 3px;
}
select::-ms-expand
{
  display: none;
}
我得到类似的东西:

现在,如果我将背景位置修改为,background-position: right 10px center;我会得到类似
.
如何在保持线性渐变“一直”的同时将图像从右边框定位 10px?顺便说一句:我觉得在我的图像右侧添加 10px 的透明度不是一种选择;-)