我可以在背景中重复图像的部分吗?!
例如:
background-position : -13px top ; background-repeat : repeat-y ;
因为我重复了整个 Sprite 图像......
最佳答案
如果您将图像并排放置在一个非常宽的 sprite 中,您将能够使用 repeat-y。如果您需要使用 repeat-x,您可以将 sprite 中的图像放在彼此之上。
关于CSS sprite image + background-重复它的一部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5567158/