TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: HTML multi-select not user-friendly on desktop?

1 点作者 TiredGuy7 个月前
Yesterday I was reviewing an HTML form with my UX colleague, and he said we should change all our &lt;select multiple&gt; elements to collections of checkboxes instead since selecting multiple things with it is just too unintuitive for desktop users.<p>Shift+click to select consecutive multiple<p>Ctrl+click to select non-consecutive multiple<p>Shift+Up&#x2F;Down to select consecutive multiple with keyboard<p>Ctrl+Up&#x2F;Down then release Ctrl, then Space to select non-consecutive multiple with Keyboard<p>(for mac of course replace Ctrl with Cmd)<p>This surprised me since it is a built-in html standard element, but kind of makes sense after thinking about it. What do you think? In contrast I do like how it renders on mobile, where it basically does render as a series of checkboxes. Would it be better if desktop browsers redesigned it to look more like mobile?

2 条评论

codingdave7 个月前
If there are only a few items, yes - checkboxes are great for short lists. But if it is a long list, no - a huge pile of checkboxes is awful. So if your list contains more than a dozen items, just stick with the multi-select.<p>And you are right to just use the built-in UX the browser offers. Flawed it may be, but it is standard. Don&#x27;t confuse your desktop users by inventing something new. They know their own browser.
评论 #41849724 未加载
评论 #41849715 未加载
Daril7 个月前
Have you tried Slim Select ? <a href="https:&#x2F;&#x2F;slimselectjs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;slimselectjs.com&#x2F;</a>