blockly > utils > style > getBorderBox
utils.style.getBorderBox() 函数
获取计算出的边框宽度(四周),以像素为单位。从 Closure 的 goog.style.getBorderBox 复制
Signature:
export declare function getBorderBox(element: Element): Rect;
参数
参数 | 类型 | 说明 |
---|---|---|
元素 | 元素 | 要获取其边框宽度的元素。 |
返回:
计算出的边框宽度。