°³Ã¼ÀÇ ÅؽºÆ® Áß°£¼± ±ß±â, ÀÁÙ ±ß±â, ¹ØÁÙ ±ß±â µî Àå½Ä ¹æ¹ýÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
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´Â Ç¥ÇöµÇÁö ¾Ê´Â´Ù.
°³Ã¼ | script | CSS | IE ¹öÀü |
---|
ÀÌ ¼Ó¼ºÀº 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 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>