* { padding:0; margin:0; } body { padding:100px; } #box { position:absolute; width:150px; height:150px; background:orangered; border:10px solid lightcoral; }
用鼠标拖拽上下左右的边框即可实现div的拉伸