This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

table.width

Deprecated

Avoid using this feature in new projects. Some table styling attributes have no effect. They are superseded by CSS. This feature may be a candidate for removal from web standards or browsers.

요약

width는 바라는 테이블의 너비를 지정합니다.

구문

js
HTMLTableElement.width = width;
var width = HTMLTableElement.width;

width가 픽셀수나 퍼센트 값으로 너비를 나타내는 문자열인 곳.

예제

js
mytable.width = "75%";

명세서

Specification
HTML
# dom-table-width