Srcset属性选择错误的图像

时间:2018-12-03 15:48:04

标签: html css

srcset属性将1600px图像加载到我的Samsung Galaxy S6上,并可能加载到其他任何移动设备上,我真的不明白为什么。

        <img src="https://res.cloudinary.com/hypestyle/image/upload/c_scale/cx5lqdelvrpwbytwgm5d.jpg"
     srcset="https://res.cloudinary.com/hypestyle/image/upload/c_scale,w_200/cx5lqdelvrpwbytwgm5d.jpg 200w,
    https://res.cloudinary.com/hypestyle/image/upload/c_scale,w_400/cx5lqdelvrpwbytwgm5d.jpg 400w,
    https://res.cloudinary.com/hypestyle/image/upload/c_scale,w_800/cx5lqdelvrpwbytwgm5d.jpg 800w,
    https://res.cloudinary.com/hypestyle/image/upload/c_scale,w_1200/cx5lqdelvrpwbytwgm5d.jpg 1200w,
    https://res.cloudinary.com/hypestyle/image/upload/c_scale,w_1600/cx5lqdelvrpwbytwgm5d.jpg 1600w" 
sizes=" (min-width: 100px) 100vw,
        (min-width: 768px) 100vw,
        (min-width: 992px) 50vw,
        (min-width: 1200px) 30vw" class="postFeedImage">

0 个答案:

没有答案