CSS - using one background image with multiple images on it

前端 未结 7 2036
情书的邮戳
情书的邮戳 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:32

    It has the advantage that only one image needs to be loaded so that things like hover (roll-over) effects are faster. The technique is usually called "CSS sprites". Google for it.

提交回复
热议问题