Html
    Css
    Js

    
                        
a * {
	margin:0;
	padding:0;
}
body {
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
}
#wrap {
	height:100px;
	text-align:center;
}
img {
	width:100px;
	height:100px;
	cursor:-webkit-grab;
	cursor:-moz-grab;
	cursor:grab;
}
#cart {
	width:500px;
	height:100px;
	border-radius:20px;
	margin:50px auto 0;
	background-color:orange;
}
#cart1 {
	width:500px;
	height:100px;
	border-radius:20px;
	margin:50px auto 0;
	background-color:orange;
}
#cart.hover {
	background-color:red;
}
#cart img {
	width:70px;
	height:70px;
	margin:15px;
}

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

拖拽示例

0