这是我一直在使用的 javascript 代码。我不断收到错误
'''
cannot set property 'animationplaystate' of undefined.
'''
'''
window.setTimeout(function time(){
var run=document.getElementsByClassName('logo');
run.style.animationplaystate='paused';
}, 3000);
'''
下面是元素的样式
'''
.logo{
color: rgb(0, 158, 150);
float:right;
padding-right:0px;
font-weight: 600;
padding-top:5px;
margin-right: 20px;
font-size: 2em;
padding-left: 30px;
animation-name:logo;
animation-duration: 1.5s;
animation-play-state: running;
}
'''
繁花不似锦
慕妹3146593
扬帆大鱼
相关分类