background repeat tiled bgImage inside an sprite i

2019-08-30 06:51发布

Lets say this is our sprite

enter image description here

(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?

enter image description here

1条回答
贼婆χ
2楼-- · 2019-08-30 07:21

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.

查看更多
登录 后发表回答