Do I still need to pad images in a CSS Sprite?

前端 未结 4 1166
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 13:23

In CSS Sprites you will often find padding between each image. I believe the idea is so that if the page is resized then one image won\'t bleed into another.

I thin

4条回答
  •  执念已碎
    2020-12-24 14:22

    Simon - My experience is that this is certainly still a problem.

    In response to your second question, why not use transparent padding? (Perhaps you are still supporting ie6 and this is non-trivial, in which case, I'm really sorry).

提交回复
热议问题