¹®¼¿¡¼ ÁٹٲÞÇÒ ¶§ À¯µ¿(floating) °³Ã¼ÀÇ ¾î´À ¹æÇâ¿¡ ³»¿ëÀ» Ç¥½ÃÇÏÁö ¾ÊÀ» °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
all | °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¾Æ·¡ µð½ºÇ÷¹ÀÌ µÈ´Ù. |
left | °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¿ÞÂÊ ¾Æ·¡¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù. |
right | °³Ã¼´Â À¯µ¿ °³Ã¼ÀÇ ¿À¸¥ÂÊ ¾Æ·¡¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù. |
none | À¯µ¿ °³Ã¼°¡ ¸ðµçÂÊ¿¡ µð½ºÇ÷¹ÀÌ µÈ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<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><BR id=brObj></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><IMG id=floatObj></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>