Visit Mozilla.org

DOM:table

MDC

« Gecko DOM Reference

목차

[편집] HTML Table 요소 인터페이스

table 개체는 (상속으로 이용할 수 있는 정규 element 개체 인터페이스 외에) HTML 표의 layout과 presentation을 다루는 특수 프로퍼티와 메소드를 제공하는 HTMLTableElement 인터페이스를 내놓습니다.

[편집] 프로퍼티

table.caption 
caption은 표 caption을 반환합니다.
table.tHead 
tHead는 표 head를 반환합니다.
table.tFoot 
tFoot은 표 footer를 반환합니다.
table.rows 
rows는 표의 줄(row)을 반환합니다.
table.tBodies 
tBodies는 표 body를 반환합니다.
table.align 
align은 표 정렬을 get/set합니다.
table.bgColor Deprecated 
bgColor는 표의 배경색을 get/set합니다.
table.border 
border는 표 border를 get/set합니다.
table.cellPadding 
cellPadding은 cell padding을 get/set합니다.
table.cellSpacing 
cellSpacing은 표 주변 spacing을 get/set합니다.
table.frame 
frame은 표 어느 쪽이 border를 가질 지를 지정합니다.
table.rules 
rules는 안쪽 border가 보일 지를 지정합니다.
table.summary 
summary는 표 요약을 get/set합니다.
table.width 
width는 표 너비를 get/set합니다.

[편집] 메소드

table.createTHead 
createTHead는 표 header를 만듭니다.
table.deleteTHead 
deleteTHead는 표 header를 없앱니다.
table.createTFoot 
createTFoot은 표 footer를 만듭니다.
table.deleteTFoot 
deleteTFoot은 표 footer를 없앱니다.
table.createCaption 
createCaption는 표에 새 caption을 만듭니다.
table.deleteCaption 
deleteCaption은 표 caption을 없앱니다.
table.insertRow 
insertRow는 새 줄을 삽입합니다.
table.deleteRow 
deleteRow는 줄을 없앱니다.