【发布时间】:2011-03-31 23:16:39
【问题描述】:
我想在页面的页眉区域创建幻灯片。它应该每 10 秒更改一次背景图像,并具有很好的淡入淡出效果。由于我已经将 jQuery 用于其他东西,所以我也想使用它。
所以我的标记就是:
<div id="header">
<!--other stuff here...-->
</div>
我现在的 CSS 是:
#header {
background: url('images/header_slides/slide_1.jpg') no-repeat;
}
所以现在我想要的是 10 秒后它会变成
#header {
background: url('images/header_slides/slide_2.jpg') no-repeat;
}
具有不错的缓慢淡入淡出效果。
【问题讨论】:
标签: jquery background-image fade