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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Cool native HTML elements you should already be using

75 点作者 hbroadbent2 个月前

5 条评论

RadiozRadioz2 个月前
&gt; I’ve used TailwindCSS for the styling, but you can apply them directly with CSS for the same result<p><pre><code> class=&quot;[&amp;::-webkit-progress-bar]:rounded-lg [&amp;::-webkit-progress-value]:rounded-lg [&amp;::-webkit-progress-bar]:bg-stone-300 [&amp;::-webkit-progress-value]:bg-stone-400 [&amp;::-moz-progress-bar]:bg-stone-400&quot; </code></pre> Anyone else think this Tailwind-everything trend has gone too far? Tools have strengths and weaknesses, but I never understood why Tailwind specifically is so poularly seen as some kind of &quot;default&quot; these days - rather than a supplement to CSS for common&#x2F;simple operations.<p>Personally I think the popular trends have overcorrected from CSS; soon we&#x27;ll realize that the amount of complexity above is screaming to be packaged up and named something, rather than being crammed into the markup alongside more sensible things like text-black.
评论 #43333551 未加载
评论 #43331295 未加载
pjmlp2 个月前
The problem is that they can&#x27;t be customised to whatever the UI&#x2F;UX team dreamed on their PowerPoint,Photoshop,Sketch,Figma,..... drawings, expecting platform capabilities like on native GUIs.<p>Thus even if supported, they don&#x27;t do those cool UI&#x2F;UX workflows sold to clients, and that is how we still end with a div&#x2F;css&#x2F;javascript soup, or back to Flash like approaches, now that WebGL&#x2F;WebGPU&#x2F;WebAssembly has brought that tooling back into the Web.
pastrami_panda2 个月前
This website is quite broken on firefox android. Lots of jank but most notably the viewport isn&#x27;t fixed so when you interact with sliders the viewports also shifts to the side. Figured I&#x27;d point it out as it&#x27;s an article about website interaction.
评论 #43330676 未加载
hbroadbent2 个月前
Stoked to see a few hundred people have already read this article (and one person&#x27;s already suggested an improvement!).<p>What other elements should I add?
评论 #43329977 未加载
评论 #43332546 未加载
malmz2 个月前
Tiny nit-pick: onclick=&quot;document.getElementById(&#x27;modal&#x27;).showModal()&quot; in yellow box 3 seems to not allow word breaks, overflowing the page