我有这样的HTML代码如何显示隐藏的div逐一淡入和淡出
<div class="container" id="container">
<div class="post"><h1>first title</h1>description here</div>
<div class="post"><h1>second title</h1>description here</div>
<div class="post"><h1>third title</h1>description here</div>
</div>
和这个CSS
.container {
height: 200px;
width: 300px;
border: 1px solid #666;
position: relative;
}
.post {
padding: 5px;
height: 190px;
width: 290px;
position: absolute;
z-index: 0;
}
,现在这个js
// JavaScript Document
$(document).ready(function() {
$(".post").css("display","none");
$(".post:first").fadeIn(1000).css("display","block");
setInterval("displayPosts()",6000);
//document ready end
});
function displayPosts(){
}
想你知道我需要什么我真的不明白如何动画他们一个接一个每6秒我知道如何做到这一点与图像,但它不适用于文本在所有
非常感谢,这正是我正在寻找再次感谢 –
这对你有帮助吗? – ShankarSangoli