<SCRIPT LANGUAGE="JavaScript">
<!--
 function getPicSize()
 {
var pic ="http://image.chinahr.com/2005/sss/images/top.jpg";
 var imgs = new Image();
 imgs.src = pic;
 alert(imgs.fileSize);//9062
 alert(imgs.width);
 alert(imgs.height);
 }

 setTimeout("getPicSize()",5000);
//-->
</SCRIPT>

服务器端的:
System.Drawing.Image myImage = System.Drawing.Image.FromFile(图片路径);
string strWidth = myImage.Width;
string strHeight = myImage.Height;

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2022-02-13
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案