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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: This one line of code will make HN usable on mobile devices

12 点作者 hornbaker将近 11 年前
Since the HN devs seem to be in dev-mode, I thought I&#x27;d put in one more little request. :)<p>This one line of code, added to the head of HN&#x27;s html, will make the site actually usable on mobile devices:<p><pre><code> &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, user-scalable=yes&quot;&#x2F;&gt; </code></pre> Here are the <i>before</i> and <i>after</i> pics of the front page:<p><pre><code> http:&#x2F;&#x2F;imgur.com&#x2F;rMYfqwN,mwPDMvB#0</code></pre>

2 条评论

kogir将近 11 年前
Been there, tried that:<p><pre><code> https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6253835 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6253403 </code></pre> Trust me, it&#x27;s worse on most devices. On the Android devices I tested comments often get compressed to two or three characters per line.
评论 #7986637 未加载
评论 #7985908 未加载
hornbaker将近 11 年前
Clickable link to before&#x2F;after pics: <a href="http://imgur.com/rMYfqwN,mwPDMvB#0" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;rMYfqwN,mwPDMvB#0</a>