Å×À̺íÀÇ ¾î´À ³»ºÎ ºÐ¸®¼±À» º¸ÀÌ°Ô Çϴ°¡¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº Å×À̺íÀÇ ¾î´À ³»ºÎ ºÐ¸®¼±À» º¸ÀÌ°Ô Çϴ°¡¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

all Å׵θ®´Â Å×À̺íÀÇ ¸ðµç ÁÙ°ú Ä÷³¿¡ µð½ºÇ÷¹À̵ȴÙ.
cols Å׵θ®´Â Å×À̺íÀÇ ¸ðµç ¼öÁ÷ Ä÷³¿¡ µð½ºÇ÷¹À̵ȴÙ.
groups Å×À̺íÀÇ ¸ðµç tHead, tBody¿Í tFoot °³Ã¼ »çÀÌ¿¡ ¼öÆò Å׵θ®°¡ µð½ºÇ÷¹À̵Ǹç, ¼öÁ÷À¸·Î´Â ¸ðµç colGroup °³Ã¼ »çÀÌ¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù.
none Å׵θ®´Â Å×À̺íÀÇ ¾î´À ºÎºÐ¿¡µµ µð½ºÇ÷¹À̵ÇÁö ¾Ê´Â´Ù.
rows Å׵θ®´Â Å×À̺íÀÇ ¸ðµç ¼öÆò ÁÙ¿¡ µð½ºÇ÷¹À̵ȴÙ.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

¼Ó¼º°ª noneÀº Å×À̺íÀÇ ¸ðµç ³»ºÎ Å׵θ®¸¦ º¸ÀÌÁö ¾Ê°Ô ÇÑ´Ù. ¸ðµç Å×À̺í Å׵θ®¸¦ º¸ÀÌÁö ¾Ê°Ô ÇÏ·Á¸é table °³Ã¼ÀÇ rules ¼Ó¼º¿¡ ºó¹®ÀÚ¿­('')À» ¼³ÀúÇϰųª rules ¼Ó¼ºÀ» »ç¿ëÇÏÁö ¾ÊÀ¸¸é µÈ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
Âü°í
frame

ÀÌ ¼Ó¼ºÀº HTML 4.0°ú (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


table ¼Ó¼º ¿¹Á¦

Å×ÀÌºí ³»ºÎ º¸´õ ¿¹Á¦ ÇöÀç table.rules="none" Ä­ 1-5 Ä­ 1-6
Ä­ 2-1 Ä­ 2-2 Ä­ 2-3 Ä­ 2-4 Ä­ 2-5 Ä­ 2-6
Ä­ 3-1 Ä­ 3-2 Ä­ 3-3 Ä­ 3-4 Ä­ 4-5 Ä­ 3-6
Ä­ 4-1 Ä­ 4-2 Ä­ 4-3 Ä­ 4-4 Ä­ 4-5 Ä­ 4-6
Ä­ 5-1 Ä­ 5-2 Ä­ 5-3 Ä­ 5-4 Ä­ 5-5 Ä­ 5-6
°á°ú Ç¥½Ãâ
<DIV style=padding:10>
<TABLE id="tableObj" rules="none" border=5 cellspacing=3 cellpadding=3 bgcolor=#ffffaa width=700>
<COLGROUP><COL></COLGROUP><COL><COL><COL><COLGROUP><COL><COL></COLGROUP>
<THEAD>
<TR><TD colspan=2>Å×ÀÌºí ³»ºÎ º¸´õ ¿¹Á¦</TD>
<TD colspan=2>ÇöÀç table.rules="<SPAN id=cellshow style=color:red>none</SPAN>"</TD>
<TD>Ä­ 1-5</TD><TD>Ä­ 1-6</TD></TR>
</THEAD>
<TR><TD>Ä­ 2-1</TD><TD>Ä­ 2-2</TD><TD>Ä­ 2-3</TD><TD>Ä­ 2-4</TD><TD>Ä­ 2-5</TD><TD>Ä­ 2-6</TD></TR>
<TR><TD>Ä­ 3-1</TD><TD>Ä­ 3-2</TD><TD>Ä­ 3-3</TD><TD>Ä­ 3-4</TD><TD>Ä­ 4-5</TD><TD>Ä­ 3-6</TD></TR>
<TR><TD>Ä­ 4-1</TD><TD>Ä­ 4-2</TD><TD>Ä­ 4-3</TD><TD>Ä­ 4-4</TD><TD>Ä­ 4-5</TD><TD>Ä­ 4-6</TD></TR>
<TFOOT>
<TR><TD>Ä­ 5-1</TD><TD>Ä­ 5-2</TD><TD>Ä­ 5-3</TD><TD>Ä­ 5-4</TD><TD>Ä­ 5-5</TD><TD>Ä­ 5-6</TD></TR>
</TFOOT>
</TABLE>
</DIV>
<STYLE>.butClass{width:120}</STYLE>
<BUTTON onclick=showRules('all') class=butClass>all</BUTTON>
<BUTTON onclick=showRules('cols') class=butClass>cols</BUTTON>
<BUTTON onclick=showRules('groups') class=butClass>groups</BUTTON>
<BUTTON onclick=showRules('none') class=butClass>none</BUTTON>
<BUTTON onclick=showRules('rows') class=butClass>rows</BUTTON>
<BUTTON onclick=showRules('') class=butClass>¾øÀ½</BUTTON>
<DIV id=showA style="border:solid 1 blue;padding:5">°á°ú Ç¥½Ãâ</DIV>
<SCRIPT>
rulesVal=tableObj.rules;
function showRules(ruleType){
  tableObj.rules=cellshow.innerText=ruleType;
  str='tableObj.rules=<FONT color=blue>'+tableObj.rules+'</FONT><BR>';
  showA.innerHTML=str;
}
</SCRIPT>