Å×À̺í Ä­°ú ÀÎÁ¢ Ä­»çÀÌÀÇ °Å¸®¸¦ °ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º Á¤¼ö°ª/¹éºÐÀ²)
¼Ó¼º°ªÀº ´ÙÀ½ Áß ÇϳªÀÌ´Ù.

Á¤¼ö°ª Å×À̺í Ä­°ú ÀÎÁ¢ÇÑ Ä­»çÀÌÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§ Á¤¼ö·Î ³ªÅ¸³½´Ù.
% (¹éºÐÀ²) Å×À̺í Ä­°ú ÀÎÁ¢ÇÑ Ä­»çÀÌÀÇ °Å¸®¸¦ Àüü »ç¿ë°¡´ÉÇÑ °ø°£¿¡ ´ëÇÑ ¹éºÐÀ²·Î %¸¦ Ç¥½ÃÇÏ¿© ³ªÅ¸³½´Ù.

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

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

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


ÁÙ1 Ä­1 ÁÙ1 Ä­2 ÁÙ1 Ä­3 ÁÙ1 Ä­4
ÁÙ2 Ä­1 ÁÙ2 Ä­3
cellSpacing cellPadding
°á°ú Ç¥½Ãâ
<TABLE id=tableObj border cellspacing=10 cellpadding=10 bgcolor="#ffffaa">
<TR id=tr1 style=background:#aaffff><TD id=td11>ÁÙ1 Ä­1</TD><TD id=td12>ÁÙ1 Ä­2</TD>
<TD id=td13>ÁÙ1 Ä­3</TD><TD id=td14 rowspan=2>ÁÙ1 Ä­4</TD></TR>
<TR id=tr2><TD colspan=2>ÁÙ2 Ä­1</TD><TD>ÁÙ2 Ä­3</TD></TR>
</TABLE>
<SCRIPT>
function doPlay(job){
  if (job==1) tableObj.cellSpacing++;
  if ((job==2)&&(tableObj.cellSpacing>0)) tableObj.cellSpacing--;
  if (job==3) tableObj.cellPadding++;
  if ((job==4)&&(tableObj.cellPadding>0)) tableObj.cellPadding--;
  show.innerText='tableObj.cellSpacing='+tableObj.cellSpacing+', tableObj.cellPadding='+tableObj.cellPadding;
}
</SCRIPT>
<DIV style=font-size:130%>
<SPAN style=background:#c0ffd0;color:#06d><B>cellSpacing</B></SPAN> <BUTTON onclick="doPlay(1)">Áõ°¡</BUTTON>
<BUTTON onclick="doPlay(2)">°¨¼Ò</BUTTON><SPAN style="width:3em"></SPAN>
<SPAN style=background:#c0ffd0;color:#06d><B>cellPadding</B></SPAN> <BUTTON onclick="doPlay(3)">Áõ°¡</BUTTON>
<BUTTON onclick="doPlay(4)">°¨¼Ò</BUTTON>
</DIV>
<DIV id="show" style="border:solid 1 blue;padding:5">°á°ú Ç¥½Ãâ</DIV>