Html 表格单元格之间的空间太大
好的,这张表有几个问题。我需要它看起来尽可能地失去这个: 但是,当我试图实现这一点时,包含文本的表格单元格之间会出现大量的空间,出于某种原因,valign=“top”不起作用,文本部分的垂直对齐:居中,因此它们不会与图像顶部对齐。这就是它现在的样子: 不知道如何修复这些问题或使其看起来像原来的一样:(请帮忙!提前谢谢Html 表格单元格之间的空间太大,html,css,html-table,Html,Css,Html Table,好的,这张表有几个问题。我需要它看起来尽可能地失去这个: 但是,当我试图实现这一点时,包含文本的表格单元格之间会出现大量的空间,出于某种原因,valign=“top”不起作用,文本部分的垂直对齐:居中,因此它们不会与图像顶部对齐。这就是它现在的样子: 不知道如何修复这些问题或使其看起来像原来的一样:(请帮忙!提前谢谢 <table width="570" align="center" style="padding-top:10px; background-color:#FFF; bord
<table width="570" align="center" style="padding-top:10px; background-color:#FFF; border-top:dotted 1px #000;">
<tr>
<td width="190" valign="top">
<img src="images/plant.jpg" />
</td>
<td width="199" valign="top" style="vertical-align:top;">
<p style="font-size:14px; color:#646f9a; line-height:15px;">DEFYING THE RECESSION<br>
<span style="font-size:11px; color:#707764; line-height:12px; letter-spacing:0.2pt;"><strong>Sarah Walker</strong>, CNNMoney.com staff writer</span></p>
<p style="font-size:11px; color:#707764; line-height:12px; letter-spacing:0.2pt;">When metal worker Ken Kash was laid off in July from his job at a theatre set company, he decided not to look for another full-time position. Instead, he's pursing a <span style="text-decoration:underline;">longtime dream</span>: launching his own company.</p>
<p style="font-size:11px; color:#646f9a;">STRATEGIC <strong>INVESTMENT</strong> <span style="color:#c0d84d;">•</span></p>
</td>
<td width="121" valign="top" rowspan="1" style="background-color:#eff2d9; border-bottom:solid #c0d84d 8px; padding-left:10px; padding-right:10px; padding-top:2px;">
<p style="font-size:14px; color:#646f9a; line-height:15px;">ASK AN EXPERT</p>
<p style="font-size:11px; color:#707764; line-height:12px; letter-spacing:0.2pt;"><strong>Q: Is there anything in this massive federal economic stimulus plan for small business? <br>
— Rick<br><br>
A: Yes, lots.</strong><br><br>
There is going to be a lot of federal, state and local money available. Get ready to take advantage of it. <span style="text-decoration:underline;">Read more...</span></p>
<p style="font-size:11px; color:#646f9a;">ASK THE <strong>EXPERT</strong> <span style="color:#c0d84d;">•</span></p>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align:top;"><img src="images/video.jpg" />
</td>
<td valign="top" style="vertical-align:top;">
<p style="font-size:14px; color:#646f9a; line-height:15px;">DEFYING THE RECESSION<br>
<span style="font-size:11px; color:#707764; line-height:12px; letter-spacing:0.2pt;"><strong>Sarah Walker</strong>, CNNMoney.com staff writer</span></p>
<p style="font-size:11px; color:#707764; line-height:12px; letter-spacing:0.2pt;">When metal worker Ken Kash was laid off in July from his job at a theatre set company, he decided not to look for another full-time position. Instead, he's pursing a <span style="text-decoration:underline;">longtime dream</span>: launching his own company.</p>
<p style="font-size:11px; color:#646f9a;">STRATEGIC <strong>INVESTMENT</strong> <span style="color:#c0d84d;">•</span></p>
</td>
<td rowspan="2"> </td>
</tr>
</table>
挑战经济衰退
莎拉·沃克,CNNMoney.com工作人员作家
战略性投资
咨询专家
Q:这项针对小型企业的大规模联邦经济刺激计划中有什么内容吗?
-瑞克
A:是的,很多。
将有大量联邦、州和地方资金可用。准备好利用它。阅读更多
询问
挑战经济衰退
莎拉·沃克,CNNMoney.com工作人员作家
战略性投资
您不应该为此使用表。请尝试twitter引导或960 Gs或sny其他css网格系统。您不应该为此使用表。请使用flexbox、float或inline block(谷歌搜索它们)。使用CSS类。Rowspan设置为1。将其加倍。抱歉,我应该提到这是用于电子邮件,因此必须使用表格,因为在ESP中未正确显示div等。抱歉,我应该提到这是用于电子邮件,因此必须使用表格,因为在ESP中未正确显示div等。