Resize a div to smaller than its declared size?

前端 未结 6 1000
醉话见心
醉话见心 2021-02-07 14:50

Is there a way to resize a div to smaller than the declared height and width?

I\'m making an application where the user can resize a div and save it. However, when I loa

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 15:36

    If you want to use the CSS3 UI resize feature, then your browser decides whether you can make it smaller or bigger than declared width or height. http://www.w3.org/TR/css3-ui/#resize

    The user agent may restrict the resizing range to something suitable, such as between the original formatted size of the element, and large enough to encompass all the element's contents.

    In Firefox for example, you can resize it smaller than your declared width or height. Whilst in chrome you cannot.

提交回复
热议问题