.box { position:absolute; width:200px; height:200px; background:#f0f3f9; font-size:12px; border:1px solid #DADADA; } .bar { width:200px; height:30px; background:#fefeff; cursor:move; position:relative; background:red; border-bottom:1px solid #DADADA; }
可以自定义大小,能被拖动的范围