background repeat tiled bgImage inside an sprite image?

痞子三分冷 提交于 2019-12-12 01:55:26

问题


Lets say this is our sprite

(please ignore the black forms) Is there a way to repeat the gray -on the left- tiled image so it looks like a repeated background?


回答1:


Nope, as far as I know, this is not possible, not even in CSS3.

You will need to separate the images.

There is the background-clip property but that controls the clipping of the background image in relation to its container, which is something else.



来源:https://stackoverflow.com/questions/7796210/background-repeat-tiled-bgimage-inside-an-sprite-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!