Html
    Css
    Js

    
                        
html,body {
	overflow:hidden;
}
body,div,h2,p {
	margin:0;
	padding:0;
}
body {
	color:#fff;
	background:#000;
	font:12px/2 Arial;
}
p {
	padding:0 10px;
	margin-top:10px;
}
span {
	color:#ff0;
	padding-left:5px;
}
#box {
	position:absolute;
	width:300px;
	height:150px;
	background:#333;
	border:2px solid #ccc;
	top:50%;
	left:50%;
	margin:-75px 0 0 -150px;
}
#box h2 {
	height:25px;
	cursor:move;
	background:#222;
	border-bottom:2px solid #ccc;
	text-align:right;
	padding:0 10px;
}
#box h2 a {
	color:#fff;
	font:12px/25px Arial;
	text-decoration:none;
	outline:none;
}

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

拖动,按轨迹回放

0