封鎖 >utils >樣式 >getBorderBox

utils.style.getBorderBox() 函式

從 Closure 的 goog.style.getBorderBox 複製後,取得經過計算的邊框寬度 (以像素為單位)

Signature:

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

參數

參數 類型 說明
元素 元素 要取得其邊框寬度的元素。

傳回:

矩形

計算出的邊框寬度。