CSS3 resize property

Examples

Specify a div element that allows users to resize:

div
{
resize: both;
overflow: auto;
}


Browser Support

Figures in the table represent the first browser to support the version number of the property.

Immediately following the digital -webkit-, -ms- or -moz- ago in support of the prefix attribute first browser version number.

属性
resize 4.0 不兼容 5.0
4.0 -moz-
4.0 15.0

Attribute definitions and instructions

resize property specifies whether an element is resized by the user's.

Note: resize attribute for calculating the value of other elements of the overflow is not "visible".

Defaults: none
inherit: no
version: CSS3
JavaScript syntax: object .style.resize = "both"


grammar

resize: none | both | horizontal | vertical:

value description
none Users can not adjust the size of the element.
both Users can adjust the height and width of the element.
horizontal Users can adjust the width of the element.
vertical Users can adjust the height of the element.


related articles

CSS3 tutorial: CSS3 User Interface