ƯÁ¤ ½ºÅ¸ÀÏ ¸í·É(rule)ÀÇ ºñÁßÀ̳ª Á߿伺À» Áõ°¡½ÃŲ´Ù.
| sRule | Any CSS attribute/value pair. |
| °³Ã¼ | script | CSS | IE ¹öÀü |
|---|
ÀÌ ¼Ó¼ºÀº CSS1(Cascading Style Sheets, Level 1)¿¡¼ Á¤ÀǵǾú´Ù.
ÀÌ ¹®´ÜÀº ÃÊ·Ï»öÀÌ µÈ´Ù.
ÀÌ ¹®´ÜÀº ºÓÀº»öÀÌ µÈ´Ù.
class°¡ importantÀÎ ¹®´Ü¿¡ !important°¡ ¼±¾ðµÇ¾ú´Ù.
ÀϹÝÀûÀ¸·Î ÀζóÀÎ ½ºÅ¸ÀÏÀº STYLE ű׿¡¼ ÁöÁ¤ÇÑ ½ºÅ¸ÀÏÀ» µ¤¾î¾º¿ìÁö¸¸ ¹®´Ü ½ºÅ¸ÀÏ¿¡ !important°¡ ¼±¾ðµÇ¾î Àû»öÀÌ Àû¿ëµÈ´Ù.
<STYLE>
P.normal{ color:red }
P.important{ color:red !important }
</STYLE>
<P class="normal" style="color:green">ÀÌ ¹®´ÜÀº ÃÊ·Ï»öÀÌ µÈ´Ù.</P>
<P class="important" style="color:green">ÀÌ ¹®´ÜÀº ºÓÀº»öÀÌ µÈ´Ù.</P>