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; }
你'显示器! –