HTML DOM
The HTMLTableElement.rules property indicates which cell
borders to render in the table.
Value
One of the following:
none- : No rules
groups- : Lines between groups only
rows- : Lines between rows
cols- : Lines between cols
all- : Lines between all cells
Examples
// Turn on all the internal borders of a table
const t = document.getElementById("TableID");
t.rules = "all";
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
