Html Page 移动图片
html:
<img src=image.jpg id='imageid' style="position:absolute; left: 0; top: 0;">
js:
var x=document.getElementById('imageid').offsetTop;
x= x + step;
document.getElementById('imageid').style.top= x + "px";
getElementById 有效
document.getElementById('imageid')
querySelector 无效:
document.querySelector('img')
浙公网安备 33010602011771号