HTML DOM
The HTMLTableElement.border property represents the
border width of the table element.
Value
A string representing the width of the border in pixels.
Examples
// Set the width of a table border to 2 pixels
const t = document.getElementById("TableA");
t.border = "2";
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
