- 首页 > it技术 > >
div拖拽改变大小的demo
Title - 锐客网.box {
border: 1px solid #d6d6d6;
position: absolute;
}.left-border {
width: 4px;
height: 200px;
background-color: #00c0ff;
position: absolute;
cursor: w-resize;
}.top-border {
width: 200px;
height: 4px;
background-color: #00c0ff;
position: absolute;
cursor: n-resize;
}.right-border {
width: 4px;
height: 200px;
background-color: #00c0ff;
position: absolute;
cursor: e-resize;
}.bottom-border {
width: 200px;
height: 4px;
background-color: #00c0ff;
position: absolute;
cursor: s-resize;
}
推荐阅读