Trio ȨÆäÀÌÁö Javascript·Î CSS ÀÚµ¿À¸·Î ¸¸µé¾î Ç¥ÇöÇϱ⠿¹Á¦ ¿¹Á¦ ¸Þ´º·Î



style sheet¸¦ ¸¸µå´Âµ¥ ÇÊ¿äÇÑ { ¿Í } ´Â ÀϹÝÀûÀÎ ¹æ½ÄÀ¸·Î Ç¥ÇöÇÒ ¼ö ¾øÀ¸¹Ç·Î unescape()±â´ÉÀ» »ç¿ëÇÏ¿©¾ß ÇÑ´Ù.
{ ´Â unescape('%7B')
} ´Â unescape('%7D')
±× ¿Ü¿¡´Â Ưº°È÷ ´Ù¸¦ °ÍÀÌ ¾ø´Ù.




</head>
..
<script Language="Javascript">
fnumb=70;
tnumb=200;
step=10;
document.write ('<style type="text/css">');
for (var i=fnumb; i <= tnumb; i+=step) {
 document.write('.f'+i+unescape('%7B')+'font-size:'+i/100+'em;'+
    unescape('%7D')+'  ');
}
document.write('</style>');
</script>
</head>
<body>
..
<img src="../gif/rfexample.gif" border=0><br>
<script Language="Javascript">
str='Àû¿ëµÇ´Â HTML ÀÚü ºÎÅÍ°¡ ´Ù¼Ò ´Ù¸¨´Ï´Ù.'+
  ' tag°¡ Netscape°ú Explorer°¡ Ʋ¸®°í version¿¡ µû¶ó¼­µµ ´Ù¸£±â ¶§¹®¿¡ '+
  '»ç¿ë ÇÏ°íÀú ÇÏ´Â ºê¶ó¿ìÀú¿¡¼­ Àß ÀÛµ¿ÀÌ µÇµµ·Ï ÁÖÀǸ¦ ±â¿ï¿©¾ß ÇÑ´Ù.';

document.write ('str="'+str+
  '"(<font color=blue>Default</font>)<br><ul class=ball>');
for (var i=fnumb; i <= tnumb; i+=step) {
  document.write('<li><div class="f'+i+'">'+str+' (.f'+i+'=<font color=red>'+
    i/100+'em</font>)</div>');
}
document.write('</ul>')
</script>
.. </body>
1.0emÀ̶õ ±× ÇØ´ç À§Ä¡¿¡¼­ default ±ÛÀÚÀÇ 100% Å©±â¸¦ ¸»ÇϹǷΠ1.1emÀ» 110%·Î Ç¥È÷ÇÏ¿©µµ µÈ´Ù. Àý´ë ´ÜÀ§¸¦ ÁöÁ¤ÇÏ·Á¸é 10pt; µîÀ¸·Î Ç¥½ÃÇϴµ¥ ´Ù¸¥ ±ÛÀÚÅ©±â¿¡ ¿µÇâÀ» ÁÖ´Â ¿ä¼Ò°¡ ÀÛ¿ëµÇÁö ¾ÊÀº µðÆúÆ® ±ÛÀÚ¿¡¼­ ÀϹÝÀûÀ¸·Î 10ptÀÌ´Ù. ¿µÇâÀ» ¹ÞÁö ¾Ê°Ô ÇÏ·Á¸é pt¸¦ »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù.

¿¹¸¦ µé¾î À§ f200(2em)ÀÇ °æ¿ì ±× ¾È¿¡¼­ÀÇ º¯È­¸¦ º¸¸é;
<div class=f200>class=f200<span class=f200>class=f200</span></div>ÀÇ °á°ú
class=f200class=f200
<div class=f200>class=f200<span style="font-size:20pt;">class=f200</span></div>ÀÇ °á°ú
class=f200class=f200
¿ÞÂÊÀÌ Å©´Ù¸é µðÆúÆ® Å©±â°¡ ÀÌ¹Ì Å©°Ô ¼³Á¤µÇ¾î ÀÖ´Ù´Â °ÍÀÌ´Ù.

¹ø¿ª¹® ¼ÒÀ¯ÀÚ - Trio ȨÆäÀÌÁö Á¦°ø ÀÌ ¹®¼­(http://trio.co.kr/webrefer/csex/cxbuld.html)´Â
ÀÚÀ¯·ÎÀÌ ¿¬°á »ç¿ëÀÌ °¡´ÉÇÔ.
¿¹Á¦ ¸Þ´º·Î