Style resize 属性
- Previous Page quotes
- Next Page right
- Go to the Previous Level Object ng Style ng HTML DOM
语法
返回 resize 属性:
object.style.resize
设置 resize 属性:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
属性值
值 | 描述 |
---|---|
none | 默认值。用户无法调整元素大小。 |
both | 用户可以调整元素的高度和宽度。 |
horizontal | 用户可以调整元素的宽度。 |
vertical | 用户可以调整元素的高度。 |
initial | 将此属性设置为其默认值。请参阅 initial. |
inherit | 从其父元素继承此属性。请参阅 inherit. |
技术细节
默认值: | 无 |
---|---|
返回值: | 字符串,表示元素的 resize 属性. |
CSS Version: | CSS3 |
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 79.0 | Support | Support | 15.0 |
- Previous Page quotes
- Next Page right
- Go to the Previous Level Object ng Style ng HTML DOM