°³Ã¼ÀÇ ÅؽºÆ® Áß°£¼± ±ß±â, À­ÁÙ ±ß±â, ¹ØÁÙ ±ß±â µî Àå½Ä ¹æ¹ýÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
cssSelector : (½ºÅ¸ÀÏ ¼±ÅÃÀÚ)
¼Ó¼ºÀ» °¡Áú¼ö ÀÖ´Â ¿¤·¹¸àÆ®()³ª Ŭ¶ó½º(class) À̸§ ȤÀº ÀνÄÀÚ(id)ÀÌ´Ù.

: (¼Ó¼º ¹®ÀÚ¿­)
½ºÅ¸ÀÏ ¼Ó¼ºÀº °³Ã¼ÀÇ ÅؽºÆ® Áß°£¼± ±ß±â, À­ÁÙ ±ß±â, ¹ØÁÙ ±ß±â µî Àå½Ä ¹æ¹ýÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

none µðÆúÆ®À̸ç, ÅؽºÆ®°¡ Àå½ÄµÇÁö ¾Ê´Â´Ù.
underline ÅؽºÆ®¿¡ ¹ØÁÙÀÌ ±×¾îÁø´Ù.
overline ÅؽºÆ®¿¡ À­ÁÙÀÌ ±×¾îÁø´Ù.
line-through ÅؽºÆ®¿¡ Áß°£¼±ÀÌ ±×¾îÁø´Ù.
blink Àû¿ëµÇÁö ¾Ê´Â´Ù.

ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼­´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼­´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº noneÀÌ´Ù.

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

Ư±â

´ÙÀ½ ű׵é°ú´Â µðÆúÆ® °ªÀÌ ´Ù¸£´Ù.

°ª noneÀÌ Á¦ÀÏ µÚ¿¡ ÀÖÀ¸¸é ¸ðµç °ªµéÀº Áö¿öÁø´Ù. ¿¹¸¦µé¾î {text-decoration:underline overline blink none}·Î ¼³Á¤µÇ¸é noneÀÌ Àû¿ëµÈ´Ù.

°³Ã¼°¡ imgÆÛ·³ ÅؽºÆ®¸¦ °®°í ÀÖÁö ¾Ê°Å³ª, <DIV></DIV> ó·³ ºó ¹®ÀÚ¿­À» °®°í ÀÖÀ¸¸é ÀÌ ¼Ó¼º°ªÀº ¹«½ÃµÈ´Ù.

body °³Ã¼¿¡ textDecoration ¾ÖÆ®¸®ºäÆ®°¡ noneÀ¸·Î ¼³Á¤µÇ´õ¶óµµ a °³Ã¼¿¡´Â °è¼Ó ¹ØÁÙÀÌ ³ªÅ¸³­´Ù. a °³Ã¼¿¡ ¹ØÁÙÀ» Á¦°ÅÇÏ·Á¸é a °³Ã¼¿¡ °øÅë ½ºÅ¸ÀÏ textDecorationÀ» noneÀ¸·Î ¼³Á¤ÇÏ¿©¾ßÇÑ´Ù.

ºí·° ¿¤·¹¸àÆ®¿¡ textDecoration ¼Ó¼ºÀ» ¼³Á¤ÇÏ¸é ¸ðµç ÀζóÀÎ Àڽĵ鿡µµ Àû¿ëµÈ´Ù. ÀζóÀÎ ¿¤·¹¸àÆ®¿¡ ÁöÁ¤ÇÏ¸é ¸ðµç ÀÚ½Ä ºí·°¿¤·¹¸àÆ®¿¡µµ Àû¿ëµÈ´Ù.

overline°ú blinkÀº IE4.0 ¿¡¼­ »ç¿ëµÉ ¼ö ÀÖÁö¸¸, blink´Â Ç¥ÇöµÇÁö ¾Ê´Â´Ù.

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ÂüÁ¶
textDecoration textDecorationBlink textDecorationLineThrough textDecorationNone textDecorationOverline textDecorationUnderline

ÀÌ ¼Ó¼ºÀº CSS1(Cascading Style Sheets, Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.


Àå½Ä º¸À̱⠹®ÀÚ¿­
<DIV id="divObj" style="padding:5">Àå½Ä º¸À̱⠹®ÀÚ¿­</DIV>
<BUTTON onclick="divObj.style.textDecoration='none'">Àå½Ä ¾ø¾Ö±â</BUTTON>
<BUTTON onclick="divObj.style.textDecoration='overline'">À­ÁÙ ±ß±â</BUTTON>
<BUTTON onclick="divObj.style.textDecoration='underline'">¹ØÁÙ ±ß±â</BUTTON>
<BUTTON onclick="divObj.style.textDecoration='line-through'">Áß°£ÁÙ ±ß±â</BUTTON>

¿ë±â DIV ³»¿ë U ¿¤·¹¸àÆ® ºÎºÐ SPAN ³»¿ë ¾ÕºÎºÐ
DIV ³»¿ë
SPAN ³»¿ë µÞºÎºÐ
<DIV id="container" style="text-decoration:overline;background:ffe;border:solid 3 blue;margin:10;padding:10;">¿ë±â DIV ³»¿ë
<U>U ¿¤·¹¸àÆ® ºÎºÐ</U>
<SPAN style="text-decoration:underline;background:fef;border:solid 2 green;margin:10;padding:10;">SPAN ³»¿ë ¾ÕºÎºÐ
<DIV style="text-decoration:line-through;background:eff;border:solid 1 red;margin:10;padding:10;">DIV ³»¿ë</DIV>
SPAN ³»¿ë µÞºÎºÐ
</SPAN>
</DIV>
<SCRIPT>
str='container.style.textDecoration=<FONT color=red>'+container.style.textDecoration+'</FONT><BR>';
coll=container.all;
for (i=0;i< coll.length;i++){
  str+=' # '+i+', '+coll[i].nodeName+', <FONT color=red>'+coll[i].style.textDecoration+'</FONT>, ';
  str+='<FONT color=teal>'+coll[i].innerText+'</FONT><BR>';
}
document.write(str);
</SCRIPT>