How to use a lower resolution image for mobile?

前端 未结 4 751
自闭症患者
自闭症患者 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 18:34

    you can develop your css spreadsheet file by adding display none for large images in mobile view, the new mobile browsers wont load large images if they contain display:none in css, allowing the page to load faster and also adding display non for small images in desktop view will do the same .

提交回复
热议问题