<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<img style="position: absolute;" src="01.jpg">
</body>
<script>
addEventListener("mousemove",ev => {
document.querySelector("img").style.top = ev.y - 20 + "px";
document.querySelector("img").style.left = ev.x - 15 + "px";
})
</script>
</html>