Html
    Css
    Js

    
                        
 #box {
	width:400px;
	height:400px;
	border:1px solid #000000;
	margin:50px auto;
	position:relative;
}
#ball {
	height:30px;
	width:30px;
	border-radius:50%;
	background-color:red;
	position:absolute;
	left:0;
	top:0;
}
#block {
	width:100px;
	height:20px;
	position:absolute;
	left:150px;
	bottom:0;
	background-color:black;
}
#count {
	color:#ff0000;
	font-size:18px;
	position:absolute;
	width:20px;
	height:20px;
	left:-20px;
	top:0;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

小球运动(原创)

更新时间:2020-06-24 00:42:09

0