<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<script language=javascript> document.write("<table border=2 style='BORDER-COLOR: #ffffff; WIDTH:150px;  HEIGHT: 150px;'>")
document.write("<tr><td></td></tr>")
document.write("</table>")</script><BODY></BODY>
</HTML>

解决方案 »

  1.   

    用鼠标改变矩形筐的大小
    <script>
    function mousemoveevent(ob)
    {
     if(event.button==1)
        {
     ob.style.width=event.x-parseInt(ob.style.left);
     ob.style.height=event.y-parseInt(ob.style.top);
    }
    }
    </script>
    </head><body onMouseMove="mousemoveevent(document.all('Layer1'));"><div id="Layer1" style="border-style:solid;border-width:1px;position:absolute; left:206px; top:55px; width:227px; height:136px; z-index:1" ></div>
    </body>