Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLTableElement.cellPadding

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

The HTMLTableElement.cellPadding property represents the padding around the individual cells of the table.

Syntax

HTMLTableElement.cellPadding =
padding;
var
padding =
HTMLTableElement.cellPadding;
  • padding is either a number of pixels (e.g. "10") or a percentage value (e.g. "10%").

Example

// Set cell padding to 10 pixels
var t = document.getElementById("TableA");
t.cellPadding = "10";

Specification

文档标签和贡献者

 此页面的贡献者: teoli, kscarfone, Sheppy, ethertank, RobG, Dria, JesseW
 最后编辑者: teoli,