0

I'm working on small php script.

I have problem with css sprites. I have image with 96px the left side is 48px the right side is 48px. I want to use the left side of image as body background. And i want to use the right side of the image as backgroud of div. The problem is i don't know how to use the left side as background.

Help please.

4

1 回答 1

1

你不能。仅当您可以将元素的大小限制为要显示的图像部分的大小时,精灵才起作用。

使用单独的图像。

于 2013-08-14T06:25:52.017 回答