我在网上发现了这个icon speaker template ,我正在尝试使用它。我想在倒计时为0后显示这个类,但它没有显示出来。 我哪里做错了?
<body>
<div class="cover">
<span class="icon speaker" style=display:none></span>
</div>
<div id="countDownTimer" style=display:none></div>
</body>
<script>
var count = 120;
playInterval = setInterval(function(){
var now = new Date().getTime();
count = count - 1;
if(count > 0){
document.getElementById("countDownTimer").innerHTML = Math.floor(count/10) + " seconds before the first question!";
}
if(count == 0 || count <= 0){
document.getElementsByClassName("cover").style = "display:block";
//$(".icon speaker").show();
}
}, 100);
}
</script>