1
4

2 に答える 2

0

Apply the background-image only to the wrapping div.

Alternatively, if the center and sides need to have different images, give the center div a non-transparent background-color as well.

Also, you could fake it by using multiple background-images. Demo

Keep in mind this won't work in old versions of IE, but something as non-essential as background transparency can be excepted as graceful degradation.

于 2011-12-10T21:45:26.140 に答える
0

中央の div に不透明な背景を配置するだけで、他の背景が透けて見えなくなります。

ここを参照してください:http://jsfiddle.net/9bnHD/

于 2011-12-10T21:53:03.630 に答える