我对 HTML <select> 选择框在不同浏览器中默认外观不同感到沮丧,而且(我认为)它们在 Chrome 中相当难看:

所以我让 Claude Fable 5.2 构建了这个页面,展示它们所有可以被样式化的方式:
Build an HTML page that shows all of the ways a select box can be styled, I plan to take screenshots in every desktop and mobile browser
经过一些实验后,我决定我最喜欢的选择框 CSS 是这样的:
select {
appearance: none;
color: #1f2933;
padding: 0.5em 2.25em 0.5em 0.75em;
border: 1px solid #c4cbd3;
border-radius: 6px;
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75em center / 0.75em;
}
这是它在三个浏览器中的样子:
