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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

how to optimized images to make it sharp on ipad3?

1 点作者 jaylin大约 13 年前

1 comment

jaylin大约 13 年前
The simplest answer is just to double the dimensions of the image then use CSS to make it the right size.<p>So if you want to create an HD image at 200 x 200 on a Retina display, create the image at 400 x 400 then use CSS to control the HD image down to 200 x 200: img { width:200px; height:200px; }.<p>The HD images are still 72 dpi resolution.<p>The tricky part is then preventing non-HD devices from unnecessarily downloading the larger images.