responsive sprites / percentages

前端 未结 9 824
天涯浪人
天涯浪人 2020-12-04 09:54

I\'ve read every single question about responsive sprites using css, I saw jsfiddle with working examples of responsive sprites, but I still cannot understand how to get the

9条回答
  •  情歌与酒
    2020-12-04 10:50

    I've written a Responsive CSS Sprite Generator to take care of all the work for you. You can just upload a bunch of images and it will give you a sprite image and the CSS for it.

    It uses a novel method for making the sprites responsive - a data src with a transparent PNG to make the image maintain its aspect ratio, so unlike other methods the images don't need to be square, or all the same ratio.

提交回复
热议问题