bottom ¾ÖÆ®¸®ºäÆ®¿¡ ¼³Á¤µÈ °³Ã¼ÀÇ ¾Æ·¡ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ºÎµ¿¼Ò¼öÁ¡¼öÄ¡)
½ºÅ¸ÀÏ ¼Ó¼ºÀº bottom ¾ÖÆ®¸®ºäÆ®¿¡ ¼³Á¤µÈ °³Ã¼ÀÇ ¾Æ·¡ÂÊ À§Ä¡¸¦ ³ªÅ¸³»´Â ºÎµ¿¼Ò¼öÁ¡¼öÄ¡°ªÀÌ´Ù.

¼Ó¼º°ªÀº bottom ¾ÖÆ®¸®ºäÆ®¿¡ ¼³Á¤µÈ CSS ±æÀÌ´ÜÀ§¿Í °°´Ù.

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

CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.

Ư±â

ÀÌ ¼Ó¼ºÀº À§Ä¡ ÀâÀº °³Ã¼ÀÇ CSS bottom ¾ÖÆ®¸®ºäÆ®¸¦ ¹Ý¿µÇÑ´Ù,
bottom´Â À§Ä¡ ÀâÈù °³Ã¼¿¡¸¸ Àǹ̰¡ ÀÖÀ¸¹Ç·Î À§Ä¡°¡ ÀâÈ÷Áö ¾ÊÀº °³Ã¼¿¡¼­´Â ¹Ýȯ°ªÀÌ 0ÀÌ´Ù. bottom ¾ÖÆ®¸®ºäÆ®°¡ ¼³Á¤µÇÁö ¾Ê¾ÒÀ¸¸é posBottom ¼Ó¼º°ªÀº 0ÀÌ´Ù.

posBottom ¼Ó¼º°ªÀ» ¼³Á¤Çϸé bottom ¼Ó¼º°ªÀÌ º¯°æµÇÁö¸¸, ÁöÁ¤µÈ ´ÜÀ§´Â º¯°æµÇÁö ¾Ê´Â´Ù.

bottom ¼Ó¼º°ú´Â ´Þ¸®, posBottom ¼Ó¼º°ªÀº ºÎµ¿¼Ò¼öÁ¡ ¼öÄ¡ÀÌ°í ¹®ÀÚ¿­ÀÌ ¾Æ´Ï´Ù.

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ÂüÁ¶
pixelTop pixelBottom pixelLeft pixelRight posTop posBottom posLeft posRight
top bottom left right

±ÛÀÚ


°á°ú Ç¥½Ãâ

posBottom ¼Ó¼ºÀ¸·Î img °³Ã¼ÀÇ À§Ä¡¸¦ »ç¿ëÀÚ Áö¿ª¿¡¼­ ÁöÁ¤ÇÑ´Ù.

<STYLE>button {width:120}</STYLE>
<DIV style="border:solid 1 blue;background:ffa;color:blue;padding:5;width:480;height:100">
<IMG id=divObj src=../../gif/rfsample.gif style=position:relative;> ±ÛÀÚ</DIV>
<SCRIPT>
function doLeftSet(leng){
  divObj.style.posLeft+=leng;
  str='divObj.style.posLeft='+divObj.style.posLeft+'<BR>';
  str+='divObj.style.posBottom='+divObj.style.posBottom;
  showA.innerHTML=str;
}
function doBottomSet(leng){
  divObj.style.posBottom+=leng;
  str='divObj.style.posLeft='+divObj.style.posLeft+'<BR>';
  str+='divObj.style.posBottom='+divObj.style.posBottom;
  showA.innerHTML=str;
}
</SCRIPT>
<BUTTON onclick="doLeftSet(-10)">posLeft-=10</BUTTON>
<BUTTON onclick="doLeftSet(-5)">posLeft-=5</BUTTON>
<BUTTON onclick="doLeftSet(+5)">posLeft+=5</BUTTON>
<BUTTON onclick="doLeftSet(+10)">posLeft+=10</BUTTON><BR>

<BUTTON onclick="doBottomSet(-10)">posBottom-=10</BUTTON>
<BUTTON onclick="doBottomSet(-5)">posBottom-=5</BUTTON>
<BUTTON onclick="doBottomSet(+5)">posBottom+=5</BUTTON>
<BUTTON onclick="doBottomSet(+10)">posBottom+=10</BUTTON><BR>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>