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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Is this the shortest way make an All-Black Webpage?

1 点作者 dibeneditto大约 2 年前
Can you come up with the shortest solution to make a webpage entirely black?<p>Longest code example?: data:text&#x2F;html,&lt;body style=&quot;background-color:#000000&quot;&gt;<p>Shortest code example (with caveats)? data:text&#x2F;html,&lt;body bgcolor=0&gt;<p>HTML5 no longer supports bgcolor attribute for &lt;body&gt; tag, but many browsers provide legacy support.<p>Unconventional solutions:<p>1. Turn display off<p>2. Modifying the web browser&#x27;s default CSS to display black<p>3. Close eyes<p>4. EMP

2 条评论

xigoi大约 2 年前
You can shorten `background-color:#000000` to `background:#000`.
rman666大约 2 年前
5. Turn off.