跳到主要内容

Rect 对象类型

Rect 接受数字像素值来描述如何扩展一个矩形区域。这些值被添加到原始区域的大小中以扩展它。

示例

js
{
bottom: 20,
left: null,
right: undefined,
top: 50
}

键和值

bottom

类型必需
数字,nullundefined

left

类型必需
数字,nullundefined
类型必需
数字,nullundefined

top

类型必需
数字,nullundefined

使用方