Html
    Css
    Js

    
                        
.div1 {
	position:absolute;
	width:100px;
	height:100px;
	background:green;
}
.div2 {
	z-index:-1;
	position:absolute;
	left:200px;
	top:200px;
	width:100px;
	height:100px;
	background:yellow;
}
.boom {
	width:75px;
	height:75px;
	border-radius:50%;
	background:red;
}

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

碰撞检测(原创)

0