请高手帮忙如何才能让图片自动适应大小

[复制链接]
查看11 | 回复1 | 2008-10-22 23:00:29 | 显示全部楼层 |阅读模式
[img][/img]
" width="105" alt="">



如上面的代码所示,调用的图片怎么样才可以让大小自动适应?就是说,如果图片的大小width>142的话width=80或者84,height>150的话height=105;
大哥不懂啊,能帮我补充完整吗,就是让src="UploadFiles/" 所读取的图片自动适应其指定的大小
[img][/img]
" width="105" alt="">


回复

使用道具 举报

千问 | 2008-10-22 23:00:29 | 显示全部楼层
)">"" then response.write "this.height && this.width>142) this.width=142;else if(this.height>150) this.height=150;' align=center border=0 class=img src='"&rs2("newspic")&"'>" response.write "<img align=center border=0 class=img...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行