摘要: 法一:img 标签是没有 onload 事件的.所以 UBB 代码中的img用到的onload来处理大的图片进行自适应,这样的办法就不能采取了.但是经过测试,body还是可以带onload事件的, 所以我解决的办法就是在页面全部加载完后再处理太大的图片.于是用JS写了一段简单的代码相关代码function ReImgSize(){for (j=0;j<document.images.length;j++){document.images[j].width=(document.images[j].width>420)?"420":document.images[j].width;}} 阅读全文
posted @ 2011-02-16 02:06 遥望星空 阅读(11797) 评论(0) 推荐(0) 编辑