![](/img/trans.png)
[英]Trouble setting a height to a display:table element in firefox, works in chrome
[英]Table heights in Dreamweaver, Trouble setting table height using <p style
我正在使用表在Dreamweaver中处理电子邮件签名。 当我添加<p = style标记来设置字体大小,颜色等时,我的桌子高度发生了变化,并且我找不到找到使它们再次变短以致于文本正确堆叠的方法。 我尝试了一些在堆栈溢出时在这里找到的解决方案,但它们似乎不起作用。 问题是表格的高度在文本的每一行之间创建了很大的空间。 看起来是这样的:
这是表格行的代码:
<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>
在此代码中更改桌子高度的正确方法是什么?
您需要编辑文本的行高。 当您增加字体大小时,行高会根据字体大小而增加。
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.