<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; cha
缩放图片到合适大小 function ResizeImages() { var myimg, oldwidth, oldheight; var maxwidth = 400; var maxheight = 400 var imgs = document.getElementsByTagName('img'); //获取页面图片 这里使用document过去 for (i = 0; i <