HTMLTableElement: width property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("HTML DOM")}}

The **HTMLTableElement.width** property represents the desired width of the table.

Value

A string representing the width in number of pixels or as a percentage value.

Examples

js
myTable.width = "75%";

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}