There is a much simpler way to achieve this. CSS 3 has a resize
property to make an html element resizeable, while following other CSS properties like min/max widths etc.
.resizeable {
resize: both;
overflow: auto;
border: 2px solid black;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…