table °³Ã¼ÀÇ tHead °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
table °³Ã¼°¡ tHead ºÎºÐÀ» °¡Áö°í ÀÖÁö ¾ÊÀ¸¸é ¹Ýȯ°ªÀº nullÀÌ µÈ´Ù.
table °³Ã¼¿¡ ¿©·¯°³ÀÇ tHead °³Ã¼¸¦ °®°í ÀÖÀ¸¸é Á¦ÀÏ ¸ÕÀú °Í¸¸À» tHead °³Ã¼·Î Ãë±ÞÇÑ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
R1C1 | R1C2 | R1C3 | R1C4 |
R2C1 | R2C2 | R2C3 | R2C4 |
R3C1 | R3C2 | R3C3 | R3C4 |
R4C1 | R4C2 | R4C3 | R4C4 |
<TABLE id=tableObj width="300" border="1" cellspacing="0" cellpadding="4"> <THEAD id="tHeadObj"> <TR><TD>R1C1</TD><TD>R1C2</TD><TD>R1C3</TD><TD>R1C4</TD></TR> </THEAD> <TR><TD>R2C1</TD><TD>R2C2</TD><TD>R2C3</TD><TD>R2C4</TD></TR> <TR><TD>R3C1</TD><TD>R3C2</TD><TD>R3C3</TD><TD>R3C4</TD></TR> <TR><TD>R4C1</TD><TD>R4C2</TD><TD>R4C3</TD><TD>R4C4</TD></TR> </TABLE> <SCRIPT> document.all.tableObj.tHead.style.color='blue'; document.all.tableObj.tHead.style.backgroundColor='#ffffcc'; document.all.tableObj.tHead.style.fontWeight='bold'; document.write('tHeadObj.style.color='+tHeadObj.style.color+'<BR>'); document.write('tableObj.tHead.style.color='+tableObj.tHead.style.color+'<BR>'); </SCRIPT>