HTML页JS控制图片大小

<img border=0 src="http://www.pocketgo.com.cn/upload/2009-06/124409970303900100.jpg" 

onload="

javascript:

if(this.width>this.height){if(this.width>490)this.width=490;}

else{if(this.height>340)this.height=340;}"> 

你可能感兴趣的:(html)