jQuery UI API - Size Effect
Category
Usage
**Description:** Resize an element to a specified width and height.
size
| Parameters | Type | Description | Default value |
|---|---|---|---|
| to | Object | The height and width to resize to. | |
| origin | Array | The vanishing point. | [ "top", "left" ] |
| scale | String | Which area of the element will be resized: "both", "box", or "content". When the value is "box", the element's border and padding are resized. When it is "content", all content inside the element is resized. | "both" |
Example
Resize an element using the Size Effect.
尺寸特效(Size Effect)演示
点击任意地方进行尺寸调整。