Html
    Css
    Js

    
                        
 body {
	margin:0;
	padding:50px;
	font-size:14px;
	color:#333;
}
.panel {
	width:400px;
	height:240px;
	border:1px solid #ccc;
	position:relative;
}
.title {
	/* width:100%;
	*/
            /* height:40px;
	*/
            background-color:#ccc;
	text-align:center;
	line-height:40px;
	font-weight:bold;
}
.resizable-r {
	position:absolute;
	right:0;
	top:0;
	width:10px;
	height:100%;
	background-color:aqua;
	cursor:e-resize;
}
.resizable-b {
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
	height:10px;
	background-color:hotpink;
	cursor:s-resize;
}
.resizable-rb {
	position:absolute;
	right:0;
	bottom:0;
	width:20px;
	height:20px;
	background-color:mediumpurple;
	cursor:se-resize;
}

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

js拖动改变div

0