0
<html>
<head>
<style>
#example1 {
background-image: url(img_flwr.gif), url(paper.gif), url(flower.gif);
background-position: right bottom, left top;
background-repeat: no-repeat, repeat;
padding: 100px;
}
</style>
</head>
<body>
<div id="example1">
</div>
</body>
</html>
在這裏,我用三個背景圖像即img_flwr.gif,paper.gif,flower.gif。我想用css來滑動這些圖片。我不想淡化這些圖像。那麼,我怎麼能這樣做呢?
你自己做了什麼? –
您可能想爲此使用JavaScript,因爲CSS僅用於樣式。 – Jer
你想設置多個背景圖片嗎?你應該使用'setInterval'和jQuery css http://api.jquery.com/css/來實現這一點 –