2009.04.20 14:10
감사합니다. ^^



<style  type="text/css">
<!--
pre
{
 font-family: 맑은 고딕, Consolas, Verdana;
}

pre.code
{
 margin: 10px 0px 10px 10px;
 padding: 10px 0px 10px 10px;
 width: 800px;
 background-color: #fbedbb;
 overflow-y: scroll;
 overflow-x: scroll;
 font-family: Consolas, Verdana;
}
-->
</style>
            <script language="jscript" type="text/jscript">

    function window.onload()
  {
   
   try {
    MainContent_onload();
   } catch ( e )
   {
   }
     
   
  }
                function width_recalc()
                {
                    divDst.style.width = divStd.offsetWidth-20;
                   
                    var preElems = document.getElementsByTagName("pre");
                    var preElemsCount = preElems.length;
                    for ( var iPreIndex = 0; iPreIndex < preElemsCount; iPreIndex ++ )
                    {
                      var aPreElem = preElems[ iPreIndex ];
                      if (aPreElem.className == "code")
                      {
                        aPreElem.style.width = divStd.offsetWidth - 80;
                      }
                    }
                }
               
                function MainContent_onload()
                {
                    width_recalc();
                    window.onresize = width_recalc;
                }
            </script>
</HEAD>

<BODY>
<div id="divStd" style="border: solid 1px #7b9ebd; background-color: White; margin: 10px 10px 10px 10px">
              <div id="divDst" style="width: 650px; margin: 5px 5px 5px 5px; padding: 10px 10px 10px 10px;;overflow-y: scroll; overflow-x: scroll;
               ">
<pre class='code'>
가나다
</pre>



Posted by woojja
TAG , ,