《!--
//有链接
img{
max-width:600px;
CURSOR: hand;
width:expression(onreadystatechange=function(){if(this.width>600)this.width=600;});
ttt:expression(οnclick=function(){window.open(this.src)})
}
//无链接
img {
max-width: 600px;
width:expression(οnlοad=function(){this.style.width=(this.offsetWidth > 600)?"600px":"auto"});
}
<script language="javascript" type="text/javascript">
//改变图片大小
function resizepic() {
for (var i=0; i<document.images.length; i++) {
if (document.images[i].className == "postImg" && document.images[i].width > 350) {
document.images[i].width = 350;
}
}
}
</script>
<body οnlοad="resizepic();">
--》