有谁能帮我看一下这串代码有什么问题吗?
<html>
<head></head>
<body>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>WebCat</title>
<style>
body{
background-color:black
}
span{
position:absolute;
top:30%;
left:40%;
font-size:100px;
}
</style> <span>💞</span>
<script>
//循环多少个心
for(let i = 0; i < 50; i++){
创建标签
let xin = document.createElement("span")
//设置随机位置
xin.style.left = Math.round(Math.ramdon()*100) + "%"
xin.innerHTML = "💞"
xin.style.fontsize = Math.round(Math.randon() * 80) + "px";
//插入页面
document.body.appendChild(xin)
let top = Math.round(Math.randon() *100) - 100
//移动位置
let i = top
//定时器
setInterval(function (){
i+=0.5
xin.style.top = i + "%"
}30);
if(i > 100){
i = top
}
}
</script>
</body>
</html>