2
我只在用戶回答問題時才顯示下一個按鈕,但在問題未回答時無法隱藏該按鈕。顯示測驗的下一個按鈕
HTML:
<div id="navContent">
<button type="image" class="hide"></button>
</div>
JS:
if(this.id==rnd) {
$('button.hide').removeClass('hide');
}
和CSS:
.button {
position:relative;
background-image:url(img/bouton.png);
border:none;
width:111px;
height:202px;
color:white;
}
.button:hover {
background-image:url(img/bouton1.png);
width:111px;
height:202px;
}
.hide { dispaly: none; }
你'顯示器! –