问题描述
根据以下给出的 HTML 和 CSS 代码,编写 JavaScript 代码使球水平弹跳。
#ball {
position: relative;
left: 0px;
}
<html>
<head>
</head>
<body>
<p>
<button id="start">Start</button>
<button id="stop" disabled>Stop</button>
</p>
<div id="frame">
<!-- Update the "src" attribute if you downloaded the image locally -->
<img id="ball" src="https://raw.githubusercontent.com/bpesquet/thejsway/master/resources/basketball.jpg">
</div> </body>
</html>
显示结果:图片显示不出来
解决方法
我的,
//Write-Your-Code
const ba