Untitled Document

¼Ó¼º°ª

3. ºÐ·ù¼Ó¼º

1) display

¼Ó¼º°ª: block £üinline£ülist-time£ünone

ÀÌ ¼Ó¼ºÀº ¿ä¼Ò°¡ È­¸é¿¡ Ç¥ÇöµÉ °ÍÀΰ¡, ±×·¸´Ù¸é ¾î¶² ¹æ½ÄÀ¸·Î µð½ºÇ÷¹ÀÌ µÉ °ÍÀΰ¡¸¦ ±â¼úÇÑ´Ù. noneÀ¸·Î ¼³Á¤Çϸé È­¸é¿¡ ¿ä¼Ò¸¦ Ç¥½ÃÇÏÁö ¾Ê°í, blockÀ¸·Î ¼³Á¤Çϸé ÀÎÁ¢ÇÑ ¿ä¼ÒÀÇ °æ°è¼± »ç°¢ÇüÀ» ±âÁØÀ¸·Î »õ·Î¿î »ç°¢Çü ¿µ¿ªÀ» ¿¬´Ù. InlineÀº ÀÌÀüÀÇ ³»¿ë°ú °°Àº Çà¿¡ »õ·Î¿î ÀζóÀÎ »ç°¢Çü ¿µ¿ªÀ» ³Ö´Â´Ù.

<html>
<head>
<style type="text/css">
<!--
img {display:none}
-->
</style>
</head>
<body>
<img src="image/photo02.jpg" width="325" height="264">
</body>
</html>

¡¡

2) white-space(Explore¿¡¼­´Â Àû¿ë¾ÈµÊ)

¼Ó¼º°ª: normal£üpre£ünowrap
¹®Àå ¾È¿¡ ÀÖ´Â ºó Ä­À» ¾î¶»°Ô ó¸®ÇÒ °ÍÀÎÁö °áÁ¤ÇÑ´Ù.

<html>
<head>
<style type="text/css">
DIV{white-space:pre}
</style>
<body>
<div>
ÀÌ °÷Àº ºó Ä­ÀÌ ÀÔ·ÂÇÑ ´ë·Î ³ªÅ¸³ª¾ß Çϴµ¥..
</div>
</body>
</html>

  • normal ¼Ó¼ºÀº ÀÏ¹Ý HTML¿¡¼­¿Í ¸¶Âù°¡Áö·Î µÎ Ä­ ÀÌ»óÀÇ ºó Ä­Àº ÇÑ Ä­À¸·Î Ãë±ÞµÈ´Ù.
  • pre ¼Ó¼º°ªÀº HTML¹®¼­¿¡¼­ <pre> ű׸¦ »ç¿ëÇÑ °Í°ú °°À̱״ë·Î Ç¥½ÃµÈ´Ù.
  • nowrap ¼Ó¼ºÀº <br>ű׸¦ ¸í½ÃÇÏÁö ¾ÊÀ¸¸é, ÁÙ ¹Ù²ÞÀ» ÇÏÁö ¾Êµµ·Ï ÇÑ´Ù
3) list-style-type

¼Ó¼º°ª: disc£ücircle£üsquare£üdecimal£ülower-roman£üupper-roman£ülower-alpha£üupper-alpha

Ç׸ñ¿¡ ºÙÀÌ´Â ¼ýÀÚ³ª ºæ·¿ÀÇ Ç¥½ÃÇüŸ¦ ¼³Á¤ÇÑ´Ù. ÃʱⰪÀº discÀÌ´Ù.

<html>
<head>
<style type="text/css">
<!--
ol { list-style-type: lower-roman}
-->
</style>
</head>
<body>
<ol>
<li>»ç°ú</li>
<li>¸Þ·Ð</li>
<li>Å丶Åä</li>
</ol>
</body>
</html>

¡¡

  • disc: A disc (exact presentation is UA-dependent) - > °ËÀº µ¿±×¶ó¹Ì
  • circle: A circle(exact presentation is UA-dependent) -> Èò»ö µ¿±×¶ó¹Ì
  • square: A square(exact presentation is UA-dependent) -> ³×¸ð
  • decimal: Decimal numbers,beginning with 0. -> ÀϹݼýÀÚ
  • lower-roman: Lower case roman numerals() -> ·Î¸¶¼ýÀÚ ¼Ò¹®ÀÚ
  • upper-roman: Upper case roman numerals() -> ·Î¸¶¼ýÀÚ ´ë¹®ÀÚ
  • lower-alpha: Lower case ascii letters(a,b,c,....z) -> ¾ËÆĺª ¼Ò¹®ÀÚ
  • Upper-alpha: Upper xase ascii letters(A,B,C,...Z) -> ¾ËÆĺª ´ë¹®ÀÚ
  • none: No marker -> ¾øÀ½
4) list-style-image

¼Ó¼º°ª: URL£ünone

ºæ·¿À¸·Î »ç¿ëµÉ ±×·¡ÇÈÀ» ÁöÁ¤ÇÒ ¶§ »ç¿ëµÈ´Ù.

<html>
<head>
<style type="text/css">
<!--
UL{ list-style-image:url(image/dot.gif)}
-->
</style>
</head>
<body>
<ul>
<li>°­¾ÆÁö
<li>°í¾çÀÌ
</ul>
</body>
</html>

¡¡

5) list-style-position

¼Ó¼º°ª: inside£üoutside

¸ñ·ÏÀÇ Ç׸ñÀ» µé¿©¾²±â·Î ÇÒ °ÍÀÎÁö ³»¾î¾²±â·Î ÇÒ °ÍÀÎÁö¸¦ ¼³Á¤ÇÏ´Â ¼Ó¼ºÀÌ´Ù.
inside·Î ¼³Á¤ÇÏ¸é µé¿©¾²±â°¡ µÇ°í outside·Î ¼³Á¤ÇÏ¸é ³»¾î¾²±â°¡ µÈ´Ù. ÃʱⰪÀº outside´Ù.

<html>
<head>
<style type="text/css">
<!--
ul {list-style-position:outside}
ul.compact{list-style-position:inside}
-->
</style>
</head>
<body>
<ul>
<li>outside1</li>
<li>outside2</li>
</ul>
<ul class=compact>
<li>inside1</li>
<li>inside2</li>
</ul>

</body>
</html>


6) list-style

¼Ó¼º°ª: list-style-type£ülist-style-image£ülist-style-position

display¼Ó¼ºÀÌ ÀÖ´Â ¿ä¼Ò¸¦ ¸ñ·Ï Ç׸ñÀ¸·Î ¼³Á¤ÇÑ´Ù.

<html>
<head>
<style type="text/css">
<!--
ul { list-style-positio:outside; list-style-type:circle}
-->
</style>
</head>
</html>

<ÀÌÀü   ¸ñ·Ï   ´ÙÀ½>

¡¡

Copyright ¨Ï2001¡­2003, alza.wo.to All Rights Reserved.