I added css restrictions:
div img {}{
max-width:600px;
width:600px;
width:expression(document.body.clientWidth>600?"600px":"auto");
overflow:hidden;
}
◎ max-width:600px; The maximum width is 600px under IE7, FF and other non-IE browsers. But it doesn't work in IE6.
◎ width:600px; The image size is 600px in all browsers;
◎ When the image size is larger than 600px, it will be automatically reduced to 600px. Valid in IE6.
◎ overflow:hidden; Hide the excess part to avoid stretching and deformation caused by failure to control the image size. < script language="JavaScript">
var imgObj;
for( i = 0; i < document . getElementsByTagName("img") . length; i )