本文介绍了如何使图像适合桌子并相应地收缩或拉长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
—SA
This is not how HTML rendering works. You should rather try to adjust your table and the layout to the size of the image. Anyway, you can always present your image re-sampled down if you explicitly specify (or modify it JavaScript) the attribute width or height of the <img> element (or both, but then you will need to take care to match the aspect ratio).
—SA
<table cellspacing=0 cellpadding=0 border =1 > <td rowspan=4 VALIGN=bottom cellspacing=0 cellpadding=0> <img src="ironman_01.gif" style="width:95px;height:450px;" > </td> <td colspan=5 VALIGN=bottom> <img src=ironman_02.gif> </td> <tr> <td rowspan=2 VALIGN=top> <img src=ironman_04.gif> </td> <td VALIGN=bottom> <img src=ironman_05.gif> </td> <td> <img src=ironman_06.gif></td> <td > <img src=ironman_07.jpg> </t> <td rowspan=2> <img src=ironman_08.gif> </td> <td rowspan=2> <img src=ironman_11.jpg> </td> <td rowspan=3> <img src=ironman_12.gif> </td> <tr> <td VALIGN=top > <img src=ironman_09.jpg> </td> <td colspan=2 VALIGN=top> <img src=ironman_10.gif </td> <tr> <td VALIGN=top> <img src=ironman_13.jpg </td> <td colspan=2> <img src=ironman_14.gif </td> <td> <img src=ironman_15.jpg </td> <td> <img src=ironman_17.jpg </td> <td> <img src=ironman_16.gif </td> </table> </html>
推荐答案
这不是HTML渲染的工作方式.您应该尝试将表格和布局调整为图像的大小.无论如何,如果您明确指定(或修改JavaScript)<img>元素的属性width或height(或两者),则始终可以显示重新采样的图像,但是您需要注意匹配宽高比).
更多推荐
如何使图像适合桌子并相应地收缩或拉长?
发布评论