CSS - using one background image with multiple images on it

前端 未结 7 2052
情书的邮戳
情书的邮戳 2020-12-29 09:55

I\'ve observed that often the websites use only one background image which contains multiple images on it. For example, instead of using separately icons, all of the icons a

7条回答
  •  一个人的身影
    2020-12-29 10:29

    It has been common for a while to put two images on one sprite sheet, but the tendency has been moving towards combining ALL of your background images on the same sprite sheet to load just one file for all of them. There's a rather good tutorial here.

提交回复
热议问题