blockly >实用程序 >样式 >getBorderBox

utils.style.getBorderBox() 函数

获取计算出的(所有边的)边框宽度(以像素为单位) 从 Closure 的 goog.style.getBorderBox 复制而来

Signature:

export declare function getBorderBox(element: Element): Rect;

参数

参数 类型 说明
元素 元素 要获取边框宽度的元素。

返回

矩形

计算出的边框宽度。