我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
The HTMLTableElement.cellSpacing
represents the spacing around the individual cells of the table.
Syntax
HTMLTableElement.cellSpacing = spacing; var spacing = HTMLTableElement.cellSpacing;
spacing
is either a number of pixels (e.g. "10") or a percentage value (e.g. "10%").
Example
// Set the cell spacing to 10 pixels var t = document.getElementById('TableA'); t.cellSpacing = "10";
Specification
- W3C DOM 2 HTML Specification HTMLTableElement .cellSpacing.