前端 - 手机网页图片模糊不清晰
怪我咯
怪我咯 2017-04-17 12:58:05
0
4
1568
  1. 描述你的问题

    手机网页图片模糊不清晰,网上说使用2x的图片,但是网页本身的图片宽度是百分比计算的,
    这种问题怎么解决?
    

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
Ty80

What is the actual size of the image, and on what device does it appear blurry?

Generally use images that are twice the width and height of the device

刘奇

It depends on the size of your design draft. If the pictures are made according to the design draft, there will generally be no blurring problems

洪涛

To achieve high-definition adaptation, you need to use pictures of multiple sizes.
For example, if the design draft has a width of 640, then under ip6 and ip6 plus, the 100% width will be enlarged. If it is adapted to ip6, a 750px width design draft will be designed.
You can use media query @media to load different images,

黄舟

Use @media and set different percentage sizes under different resolutions to solve the problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template