在我的一生中,我无法在 OSx 上的 Chrome 中删除选择框上的背景/框阴影。我需要它像其他输入一样是纯白色的。看这里:
http://index1.staging.homeflow.co.uk/pdrum/register.html
一些正在使用的代码没有完成这项工作:
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#ffffff));
background: -moz-linear-gradient(top, white, white);
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0px, rgba(255, 255, 255, 1) 0px);
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
最佳答案
尝试:
select{
-webkit-appearance: none;
box-shadow: none !important;
}
:-webkit-autofill { color: #fff !important; }
您可能还想使用:
select:focus { outline: none; }
关于css - 选择背景白色/透明 - Chrome OSx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22013947/