How to develop a website for retina display?

柔情痞子 提交于 2019-12-04 22:09:41

You can use a few CSS framworks like

  1. Skeleton
  2. Foundation

and search for Responsive web design in Google

For retina Display and Mobile layout use Media queries

Here is a link from CSS-tricks which would be helpfull Css-tricks

On the iPhone/iPad, iOS is pretty smart about making things look good without any help from you. Though I haven't tried it, I'm sure OSX also does the same for desktops/laptops with Retina.

However, there are a couple of things you should definitely consider/user:

  • Viewport meta information

  • Use vector graphics to avoid fuzzy-looking images (since Retina has higher PPI, it must scale raster graphics)

  • Keep pages light and fast (general good rule for mobile)

  • CSS Media queries (general good rule for responsive development)

  • become familiar with -webkit prefixed proprietary CSS properties which give fine-grained control over many things.

  • Test often! most of the time I am pleasantly surprised by how well things "just work" (and how great they look with high PPI), but it doesn't always work the way you expect.

Whenever I create a site, I use retina.js. It automatically replaces lower resolution images on your page with the high resolution on your server if the user has a retina display.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!