high resolution CSS sprites

前端 未结 3 1862
慢半拍i
慢半拍i 2021-01-19 21:30

I\'m generating CSS sprites. I want to use these sprites at multiple sizes. I\'ve searched but haven\'t been able to figure out how to functionally scale a CSS sprite--e.g

3条回答
  •  醉梦人生
    2021-01-19 22:15

    The options I see are:

    1. Either have the sprite's contents in different sizes in one sprite.

    2. Or take the original sprite and manually resize it one time to create a smaller copy of it. Then reference the smaller sprite version for when you need the smaller images.

提交回复
热议问题