【发布时间】:2017-09-01 16:00:10
【问题描述】:
我只在用户回答问题时才进行测验
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; }
【问题讨论】:
-
你的
display:none.hide课程拼写错误!
标签: javascript jquery html css image