CSS ¸Å´º¾ó »ö»ó Ư¼º |
¼Ò°³ | ÀÏ¹Ý | ÅؽºÆ® | ÆùÆ® | ¹Ú½º | »ö»ó | ¸ñ·Ï | »öÀÎ | ¿¹Á¦ |
»ö»ó color CSS1 ±Ô°Ý »ö»ó ¼³¸í |
elementÀÇ »ö»óÀ» ÁöÁ¤ ÇÒ ¼ö ÀÖÀ¸¸ç
ÅؽºÆ®ÀÇ °æ¿ì´Â ÅؽºÆ® »ö»ó,
hrµî ´Ù¸¥ °æ¿ì´Â foreground »ö»óÀÌ ÁöÁ¤ µÈ´Ù. strong {color: blue;} (»ö»óÇ¥) | ||||||||
¹è°æ»ö background-color CSS1 ±Ô°Ý ¹è°æ»ö ¼³¸í |
¹è°æ»ö»óÀ» ÁöÁ¤ Çϴµ¥ °æ°è¼± ±îÁö ÀÌ »ö»óÀÌ Àû¿ë µÈ´Ù. h4 {background-color: white;} | ||||||||
¹è°æ À̹ÌÁö background-image CSS1 ±Ô°Ý À̹ÌÁö ¼³¸í |
background À̹ÌÁö¸¦ ÁöÁ¤ÇÑ´Ù. ´Ù¸¥ background Ư¼º°ú ÇÔ²² ¹ÙµÏÆÇ½Ä ¹è¿(tile) ȤÀº ÇÑ ¹æÇâÀ¸·Î ¸¸ ¹Ýº¹ ½Ãų ¼ö ÀÖ´Ù. body {background-image: url(bgimage.gif);} | ||||||||
¹è°æ À̹ÌÁö ¹Ýº¹ background-repeat repeat/tile, repeat-x, repeat-y, no-repeat CSS1 ±Ô°Ý À̹ÌÁö ¹Ýº¹ ¼³¸í |
background À̹ÌÁöÀÇ ¹Ýº¹ Ư¼º ÁöÁ¤.
repeat : ¼öÁ÷, ¼öÆò ¹Ýº¹
tile : ¼öÁ÷, ¼öÆò ¹Ýº¹
repeat-x : ¼öÆò ¹Ýº¹
repeat-y : ¼öÁ÷ ¹Ýº¹
no-repeat : ¹Ý¸ñ ¾ÊÇÔ
body {background-repeat: no-repeat;}
| ||||||||
¹è°æÀ̹ÌÁö À̵¿ background-attachment scroll, fixed CSS1 ±Ô°Ý À̹ÌÁö À̵¿ ¼³¸í |
background À̹ÌÁö°¡ À̵¿(scroll)Çϴ°¡ ¾Æ´Ñ°¡¸¦ ÁöÁ¤ ÇÒ ¼ö ÀÖ´Ù. ´Ù¸¥ ¿¤·¹¸àÆ®¿¡´Â º°·Î Àǹ̰¡ ¾øÀ¸¹Ç·Î ÀϹÝÀûÀ¸·Î body¿¡ Àû¿ëÇÑ´Ù. body {background-attachment: scroll;}
body {background:url(path/image.gif);
background-attachment:fixed;}
| ||||||||
¹è°æÀ̹ÌÁö ½ÃÀÛÀ§Ä¡ background-position percentage, length, {1,2}, top, center, bottom, left, center, right CSS1 ±Ô°Ý ½ÃÀÛ À§Ä¡ ¼³¸í |
¹è°æ»ö°ú À̹ÌÁö(À§Ä¡)ÀÇ ½ÃÀÛ »óŸ¦ ÁöÁ¤ÇÑ´Ù. ¹Ýº¹ Ư¼ºÀº background-repeat ¿¡¼ ÁöÁ¤ ÇÑ´Ù. ¼öÄ¡·Î À§Ä¡¸¦ ÁöÁ¤(¹éºÐÀ²/±æÀÌ) ÇÒ ¶§´Â ¼öÆò, ¼öÁ÷ ¼øÀ¸·Î ÇÑ´Ù. °¡·Î °ª ¸¸À» ÁöÁ¤Çϸé, ¼¼·Î °ªÀº ÀÚµ¿À¸·Î 50%°¡ µÈ´Ù. ±æÀÌ¿Í ¹éºÐÀ²ÀÇ ¼¯¾î¾²±â´Â Çã¿ëµÇÁö ¸¸, À̶§ ±æÀÌ´Â 10% -2cmó·³ À½¼ö ¸¸ °¡´ÉÇÏ´Ù. ±×·¯³ª ¹éºÐÀ²°ú ±æÀÌÀÇ ¼¯¾î¾²±â´Â Çã¿ëµÇÁö ¾Ê´Â´Ù. body {background-position: top center;}
| ||||||||
¹è°æ º¹ÇÕ ¸í·É background CSS1 ±Ô°Ý ¹è°æ º¹ÇÕ ¸í·É ¼³¸í |
°£·«ÇÏ°Ô ¿©·¯ Ư¼ºÀ» ÁöÁ¤ ÇÒ ¼ö Àִµ¥ ¼ø¼´Â ¹Ù²î¾îµµ °ü°è ¾ø´Ù. °¡´É ÇÑ ¿ä¼Ò´Â background-color, background-image, background-repeat, background-attachment, background-position body {
background: white url(bgimage.gif) fixed center;
}
| ||||||||
<STYLE type="text/css">
/* ¾Æ·¡ Å×À̺íÀ» Ç¥ÇöÇÏ´Â ¿¹Á¦¸¦ À§ÇÏ¿©(Explorer¿ë)*/
.line{line-height:1pt; background-color:8fbc8f;}
.color1 { color:0000ff;
background-color:#ffefef;
line-height:18pt;
font-family: ±Ã¼; font-size: 14pt; font-weight: 400; font-style: normal;
margin-left: 30pt;
padding:8;
border-color: #aaffee #006600 #ff6600 #ffffaa; border-style:solid;
border-width:20pt;
}
.color2{background-image: url(../../gif/ball.gif);background-repeat: tile;}
</STYLE>ÀÌ»óÀº <HEAD></HEAD> ¾È¿¡ ÀÖ½¿
<TABLE border=1 width=90% class=color1>
<TR><TD>ÅؽºÆ® ½ÇÇè</TD><TD>±×¸®°í ¹Ú½º</TD></TR>
<TR><TD>¹Û(Å׵θ®¿Í ÇØ´ç È¸é ³¡°úÀÇ °Å¸®)Àº border</TD>
<TD>¾È(Å׵θ®¿Í ³»¿ë ±ÛÀÚ °Å¸®)Àº padding</TD></TR>
<TR><TD colspan="2">Å׵θ® »ö»ó: À§ÂÊ, ¿À¸¥ÂÊ,
¾Æ·¡ÂÊ, ¿ÞÂÊ ¼ø¼·Î ¸í½Ã(½Ã°è¹æÇâ)</TD></TR>
<TR><TD class=color2>¹è°æ À̹ÌÁö</TD>
<TD style="background:88ffff;">¹è°æ»ö</TD></TR>
</TABLE>
| |||||||||
°á°ú¸¦ º¸¿© ÁÙ »õ â ¿±â Javascript(head ¿¡ À§Ä¡ ÇÔ) <script language=Javascript> function openwin() { newwin=window.open('cxchild.html','childWin', 'toolbar=no,location=no,scrollbars=no,width=450,height=250') } function closewin() { newwin.close() } </script> »õ â ¿±â <a href="Javascript:openwin()">¿±â</a> |
|