Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何仅为 -webkit 设置宽度样式?无论我做什么,我所有的选择框都大约宽 16 像素。Border-box 的效果为零,这真的很烦人。我什至尝试编造供应商前缀,希望违背常识,它会像-webkit-width 一样工作。当然,结果并不好。
另外,如何仅使用 -webkit-appearance: none 获得箭头?不得不与圆角作斗争非常烦人,并且默认情况下 webkit 会为您提供额外的样式。是唯一理智的浏览器FF吗?
因此,对于宽度,我只是在输入此内容后立即想到了解决方案。
@media only screen and (-webkit-min-device-pixel-ratio:0) { select { width: 25%; } }
这仅针对 -webkit 浏览器,我应该已经知道了。
那么对于箭...