<html>
<head>
<link rel="stylesheet" href="new 1.css">
<script src="new 1.js">
</script>
</head>
<body>
<button id=redButton type="button" onclick="TurnBallRed()">set ball color red</button>
<button id=blueButton type="button" onclick="TurnBallBlue()">set ball color blue</button>
<button id=greenButton type="button" onclick="TurnBallGreen()">set ball color green</button>
<div id="container">
<div id="ball">
</div>
</div>
</body>
我如何转移球左/右/上/下使用键盘?
我不想使用jQuery,只能使用JavaScript代码。
我试着用kcode。
谢谢。
你可以分享你的JS代码?你尝试过的一个(如果你)。 –