¹®¼­¿¡¼­ ÁٹٲÞÇÒ ¶§ À¯µ¿(floating) °³Ã¼ÀÇ ¾î´À ¹æÇâ¿¡ ³»¿ëÀ» Ç¥½ÃÇÏÁö ¾ÊÀ» °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº ÁٹٲÞÇÒ ¶§ÀÇ Á¤·É »óŸ¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ°í ´ÙÀ½ Áß ÇϳªÀÌ´Ù.

all °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¾Æ·¡ µð½ºÇ÷¹ÀÌ µÈ´Ù.
left °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¿ÞÂÊ ¾Æ·¡¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù.
right °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¿À¸¥ÂÊ ¾Æ·¡¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù.
none À¯µ¿ °³Ã¼°¡ ¸ðµçÂÊ¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù.

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

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶

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


¿ë±â DIV °³Ã¼ ¼ÓÀÇ ³»¿ëµé À¯µ¿ °³Ã¼
¿ë±â DIV °³Ã¼ ¼ÓÀÇ ÁÙ¹Ù²Þ ÀÌÈÄÀÇ ³»¿ë
<BR id=brObj>
<IMG id=floatObj>
°á°ú Ç¥½Ãâ
<STYLE>.butClass{width:100}</STYLE>
<DIV style="border:solid 1 blue;width:550">¿ë±â DIV °³Ã¼ ¼ÓÀÇ ³»¿ëµé
<IMG id="floatObj" src="../../gif/rfexample.gif" align="right" alt="À¯µ¿ °³Ã¼">
<BR id=brObj clear="right">¿ë±â DIV °³Ã¼ ¼ÓÀÇ ÁÙ¹Ù²Þ ÀÌÈÄÀÇ ³»¿ë</DIV>
<BUTTON onclick=doPlay('all') class=butClass>clear=all</BUTTON>
<BUTTON onclick=doPlay('left') class=butClass>clear=left</BUTTON>
<BUTTON onclick=doPlay('right') class=butClass>clear=right</BUTTON>
<BUTTON onclick=doPlay('none') class=butClass>clear=none</BUTTON><SPAN class=butClass>&lt;BR id=brObj&gt;</SPAN><BR>
<BUTTON onclick=doPlay(1) class=butClass>align=left</BUTTON>
<BUTTON onclick=doPlay(2) class=butClass>align=center</BUTTON>
<BUTTON onclick=doPlay(3) class=butClass>align=right</BUTTON>
<BUTTON onclick=doPlay(4) class=butClass>align=''</BUTTON><SPAN class=butClass>&lt;IMG id=floatObj&gt;</SPAN>
<DIV id="showA" style="width:550;border:solid 1 blue;padding:5">°á°ú Ç¥½Ãâ</DIV>
<SCRIPT>
function doPlay(job){
  if (isNaN(job)){
    brObj.clear=job;
  }
  if (job==1) floatObj.align='left';
  if (job==2) floatObj.align='center';
  if (job==3) floatObj.align='right';
  if (job==4) floatObj.align='';
  showA.innerHTML='brObj.clear='+brObj.clear+', floatObj.align='+floatObj.align;
}
</SCRIPT>