<img src="./test.gif" width="88" height="31">width,height限制图片长宽,不超过表格长宽

解决方案 »

  1.   

    限定图象的宽度<img src="***" width=numx height=numy>
      

  2.   

    <SCRIPT LANGUAGE="JavaScript"><!--
    function mm(s)
    {
      var img = new Image();
      img.src = s;
      alert("高 = "+ img.height + "\n宽 = "+ img.width);
      alert("fileSize = "+ img.fileSize +" 字节");
      if (img.width >= 200)
       {
       width = 200;
       height = 200/img.width*img.height;
       }  document.write("<img src="+s+" width="+width+" height="+height+" >");}//--></SCRIPT>真是的  还得俺自己解决