我有一个 HTML 表格,其中一个单元格包含多个连续的 HTML div。在其中一个 Div 中是一个向右浮动的图像。
问题:随着浏览器窗口大小的调整以及图像周围的 Div 扩展或收缩,当 Div 高度动态更改为小于图像高度时,图像可能会在底部垂直裁剪。
您可以看到问题发生的示例页面位于:http: //nounz.if4it.com,其中地球、身体和右侧是我正在谈论的图像。
代码看起来像......
<td class="td_BodyRight">
<div class="div_RootBody">
<h1 style="text-align:center; font: bold 1.5em Arial;">Welcome to the Home Page for this Example Web Site</h1>
</div>
<div class="div_RootBody">
<img style="float:right; padding:3px; width:150px; height:150px" src="./IMAGES/MAIN/globe1.png" alt="Global NOUNZ"/
<p><b>Note:</b> NOUNZ is a registered trademark of the International Foundation for Information Technology (IF4IT).</p>
<p>This entire Web Site was generated, in minutes, by the IF4IT NOUNZ platform and is in place as a live demonstration so that people can see and understand, for themselves, what the output of a NOUNZ compiled data set looks and feels like.</p>
<p>It should also be noted that the data contained and represented within this Web Site is strictly fabricated and for demonstration purposes. Such data is not intended nor should it be interpreted to represent anyone or anything outside this demonstration.</p>
</div>
.
.
.
关于我可以做些什么来确保图像不会被剪裁的任何想法?
谢谢,
坦率