我在我的代碼2sections。我需要逐個顯示部分2秒。請幫助我。需要顯示2秒的div
<section class="square_box tctgrid" id="question1">
<div></div>
<div></div>
<div></div>
<div class="empty"></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</section>
<section class="square_box tctgrid" id="question1">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div class="empty"></div>
</section>
上面的代碼是我的HTML代碼,也是我增加了以下
.tctgrid div{
background: #ba1818;
float: left;
height: 120px;
margin: 1%;
width: 31%;
}
.tctgrid div.empty{
background-color:#fff;
}
.psychomotor{
width: 34%;
margin-bottom:50px;
}
首先,不具有相同值的多個'id'。使用類別 –
重複使用ID('id =「question1」')是無效的。你有什麼嘗試? – Xufox
你的意思是交替,如顯示一個然後其他每秒交替,或者你的意思是顯示一個,然後其他每個頁面加載一秒? –