背景重复平铺bg图像里面的精灵图像? [英] background repeat tiled bgImage inside an sprite image?

查看:241
本文介绍了背景重复平铺bg图像里面的精灵图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设这是我们的sprite





(请忽略黑色表格)有没有办法重复灰色 - 左边的图像,看起来像一个重复的背景? / p>

解决方案

不,就我所知,这是不可能的,甚至在CSS3。



您需要分离图片。



还有 属性,但控制背景图片相对于其容器的剪辑。


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?

解决方案

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.

这篇关于背景重复平铺bg图像里面的精灵图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆