刚发现多个背景。我想知道如何将确定的属性应用于多个背景的列表中的这些背景之一。你怎么能个别针对它?将背景大小应用到多个背景的单个图层
下面是一个例子来说明:
body{
background:
url(images/small-group-bubbles.png) repeat-x fixed 10% 0,
url(images/blur-bubble.png) repeat-x fixed -130% 0,
url(images/big-bubble.png) repeat-x fixed 40% 0,
url(images/green-gra-bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: #87d677;
正如你可以看到有多种背景的名单,但我想就这些元素之一覆盖背景大小的整个屏幕。这个代码当然适用于所有图像的封面属性。我希望这个封面属性只应用于最后一张图片:green-gra-bg/jpg。
我该怎么做?
感谢Dylan,答案非常简单。您可以通过更改每个图像的简写中的代码来调整每个图层。 – 2013-04-24 17:39:08