【发布时间】:2012-03-11 00:42:21
【问题描述】:
我正在尝试了解如何使用 CSS3 定位多个背景图像。我做得不太好。如何让图像位于页面顶部、页面中间和页面底部?让我们使用一个 100px x 100px 的块来进行说明。我只能让它们位于顶部。
CSS
body {
background-image:
url(../images/red.png),
url(../images/blue.png),
url(../images/yellow.png);
background-position: left top, center top, right top;
background-repeat: no-repeat;
}
我希望它们在左上、左中和左下。
谢谢
【问题讨论】: