如何使用 html 根据表内容增加图像大小
How to increase image size based on table contents using html?
>我创建了一个表。我再次创建一个表,但在第一个表的内部创建表。
第一个表:我添加了一个图像。第二张表:我写一些内容。
内容很大,因此第二个表增加,但第一个表和图像不 increased.so 如何增加图像大小。
我使用了以下代码:
<html>
<head>
<style type="text/css">
body {
font-family: Calibri;
}
table tr {
border: none;
}
a, a:link, a:visited, a:active {
text-decoration: none;
color: #09B0CE;
}
img {
border: none;
width: 100%;
height: auto;
}
</style>
</head>
<body>
<table cellspacing="1" cellpadding="0" align="center" id="main-panel" style="width: 100%; background-color:#f2f2f2; color: rgb(75, 75, 75); border-collapse: collapse; border: 1px solid #f2f2f2;">
<tbody>
<tr>
<td >
<table align="center" width="640px" style="width: 640px; padding: 2px 0px 2px 0px; background-color: #17B8DD">
<tbody>
<tr>
<td style="width:100%;">
<table>
<tr>
<td width="85%" style="padding-top:10px">
<a href="http://www.s.com">
<img src="http://KB/logo.png" alt="S.INC style="height:auto; width:auto" sizes="80vw"/>
</a>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 0px 0px 0px 0px;">
<table style="color: #4D4D4D; font-size: 14px; font-weight: normal; width: 100%; border:1px solid #cccccc; padding: 10px 0px 10px 20px;" border="1px" cellspacing="2" cellpadding="3">
<tbody>
<tr style="padding: 10px 10px 5px 10px;">
<th style="width: 32%">Control</th>
<th style="width: 36%">Test Case Name</th>
<th style="width: 32%">Status</th>
</tr>
<tr style="padding: 10px 10px 5px 10px;">
<th style="width: 32%">EnterpriseServer</th>
<th style="width: 36%">AddPasswordForDataSource_ValidDataSourceIdAndPassword_PasswordAddedInDataSourceDetail</th>
<th style="width: 32%">Failed</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
试试这个
<table cellspacing="1" cellpadding="0" align="center" id="main-panel" style="width: 100%; background-color:#f2f2f2; color: rgb(75, 75, 75); border-collapse: collapse; border: 1px solid #f2f2f2;">
<tbody>
<tr>
<td>
<table align="center" width="" style="width:100% ; padding: 2px 0px 2px 0px; background-color: #17B8DD">
<tbody>
<tr>
<td style="width:100%;">
<table>
<tbody><tr>
<td width="" style="padding-top:10px">
<a href="http://www.s.com">
<img src="http://dakhal.net/Archieves/2/image/news_image_98.jpeg" alt="S.INC style=" width="100%">
</a>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr> <tr> <td style="padding: 0px 0px 0px 0px;">
<table style="color: #4D4D4D; font-size: 14px; font-weight: normal; width: 100%; border:1px solid #cccccc; padding: 10px 0px 10px 20px;" border="1px" cellspacing="2" cellpadding="3">
<tbody>
<tr style="padding: 10px 10px 5px 10px;">
<th style="width: 32%">Control</th>
<th style="width: 36%">Test Case Name</th>
<th style="width: 32%">Status</th>
</tr> <tr style="padding: 10px 10px 5px 10px;">
<th style="width: 32%">EnterpriseServer</th>
<th style="width: 36%">AddPasswordForDataSource_ValidDataSourceIdAndPassword_PasswordAddedInDataSourceDetail</th>
<th style="width: 32%">Failed</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
相关文章:
- 如何使用url加载程序在webpack中导入多个图像
- 如何使用 html 根据表内容增加图像大小
- 随着模块数量的增加,Javascript图像正在重复
- 如何在滚动时增加图像的不透明度
- Canvas toDataUrl增加了图像的文件大小
- jssor如何增加图像数量
- 保存画布中的图像而不增加其大小
- 设置间隔以增量增加/减少图像宽度
- 删除特定图像时增加该值
- 增加无序列表中图像的可点击区域
- 在js中增加图像大小
- 如何在html中增加画布图像的大小
- ThreeJS loadTexture将图像收集到内存中,并且内存增加得很快
- 增加jCarousel可见图像不工作
- 更改图像src会增加资源
- 灯箱问题,我多次放置相同的链接,图像数量增加
- HTML 幻灯片图像大小在更改其尺寸时不会增加
- 如何在单击图像时增加iframe宽度
- 堆叠的图像集,每个图像的偏移量增加
- 如何增加图像的大小,使其可见