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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: When and why do developers prefer an image as background and not CSS?

2 点作者 rayraegah超过 6 年前
I ask out of morbid curiosity. Took a look under the hood of the Microsoft by the Numbers [1] microsite and noticed the captivating background gradient was actually an image [2] not CSS gradient.<p>I can guess a few reasons<p>* Consistent color reproduction on all devices<p>* Some gradients are difficult to reproduce and may require multiple layers<p>* Presentation matters more than performance and the code has a one off use<p>[1] https:&#x2F;&#x2F;news.microsoft.com&#x2F;bythenumbers&#x2F;en&#x2F;homepage<p>[2] https:&#x2F;&#x2F;news.microsoft.com&#x2F;bythenumbers&#x2F;assets&#x2F;uploads&#x2F;00&#x2F;bg-2048.jpg

暂无评论

暂无评论