我正在使用表格在Dreamweaver中处理电子邮件签名。当我添加< p =样式标签用于设置我的字体大小,颜色等,我的表格高度发生了变化,我无法找到再次缩短它们的方法,以便正确堆叠文本。我尝试了一些我在堆栈溢出时发现的解决方案,但它们似乎不起作用。问题是表格的高度在每行文本之间创造了很大的空间。这就是它的样子:
以下是表行的代码:
<tr>
<td colspan="5"> <p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 12px;"> Best regards, </p></td>
</tr>
<tr> </tr>
<tr>
<td colspan="5"><p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 15px;">
<strong>Name Lastname</strong></p></td>
</tr>
<tr> </tr>
<tr>
<td colspan="5"><p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 12px;">Title here</p> </td>
</tr>
<tr>
在此代码中更改表格高度的正确方法是什么?
答案 0 :(得分:0)
您需要编辑文本的行高。增加字体大小时,行高会根据字体大小增加。
<tr>
<td colspan="5"> <p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 12px; line-height: 5px;"> Best regards, </p></td>
</tr>
<tr> </tr>
<tr>
<td colspan="5"><p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 15px; line-height: 5px;">
<strong>Name Lastname</strong></p></td>
</tr>
<tr> </tr>
<tr>
<td colspan="5"><p style="font-family:Arial, Helvetica, sans-serif; color: #000000; font-size: 12px; line-height: 5px;">Title here</p> </td>
</tr>
<tr>
&#13;