hiw3c 日报精选
Simon Willison 网页快照

选择风格样本

原文标题 · Select Styling Specimens

工具:选择样式样本 我对于HTML <select> 框在不同浏览器中默认呈现不同外观感到很沮丧,而且在Chrome中我觉得相当难看:所以我让 Claude Fable 5.2 帮我构建了这个页面,展示了所有可以对它们进行样式化的方式:构建一个HTML页面,展示select框的所有样式化方法,我打算在每一个桌面和移动浏览器中截图。经过一些实验后,我决定我对select框最喜欢的CSS是这样的:se

来源:Simon Willison · simonwillison.net

正文为英文,可一键机器翻译(仅首次需要等待)

Simon Willison’s Weblog

I got frustrated at how HTML <select> boxes default to looking different in different browsers, and are (I think) quite ugly in Chrome:

So I had Claude Fable 5.2 build me this page showing all of the ways they can be styled:

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

After some experimentation I've decided my favorite CSS for select boxes is this:

select { appearance : none ; color : # 1f2933 ; padding : 0.5 em 2.25 em 0.5 em 0.75 em ; border : 1 px solid # c4cbd3 ; border-radius : 6 px ; 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.75 em center / 0.75 em ; }

Here's what that looks like in the three browsers:

Recent articles

Running the full server-side Datasette Python app in the browser with service workers and Pyodide - 17th November 2026

Locating the source of a mysterious beep with Claude - 9th November 2026

Hide your slop PR descriptions behind <details><summary> - 9th November 2026

Qwen 3.8 27B on my laptop can interpret model weights, too - 3rd November 2026

This is a beat by Simon Willison, posted on 22nd November 2026 .

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.