How to use a lower resolution image for mobile?

前端 未结 4 719
自闭症患者
自闭症患者 2020-12-16 18:06

I\'m designing a responsive site using media queries to change the layout as the viewport size changes.

For mobile, I think it would be beneficial to use a lower res

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 18:32

    It's simple - create another image with less resolution, and put it with media queries.

    Media Queries can help you hide and show elements based on screen resolution and media type.

    A great resource would be this article about media queries on CSSTricks which covers different devices, platforms and res

提交回复
热议问题