- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个我创建的电子邮件模板,但我似乎无法弄清楚是什么在扩展表格,我附上了一个屏幕截图以供引用。任何帮助都会很棒。
这是模板那部分的代码:
<tr>
<td style="width:27px;height:53px;display:block;float:left;padding:0;margin:0;">
<img src="#" />
</td>
<td style="width:31px;height:53px;display:block;float:left;padding:0;margin:0;"> <a href="http://youtu.be" target="_blank"><img src="#" /></a>
</td>
<td style="width:24px;height:53px;display:block;float:left;padding:0;margin:0;"> <a href="#" target="_blank"><img src="#" /></a>
</td>
<td style="width:25px;height:53px;display:block;float:left;padding:0;margin:0;"> <a href="#" target="_blank"><img src="#" /></a>
</td>
<td style="width:518px;height:53px;display:block;float:left;padding:0;margin:0;">
<img src="#" />
</td>
</tr>
<tr>
<td style="display:block;float:left;padding:0;margin:0;">
<img src="#" />
</td>
</tr>
最佳答案
在表格单元格中使用 html align="left"
而不是 float 。您不需要在表格单元格中使用 display:block;
,而是将其放在图像标签中。
此外,删除表格单元格中的所有 css 宽度和高度,并将其替换为 html width=""
和 height=""
另外,如果你把它放在你的表格标签中:border="0"cellpadding="0"cellspacing="0"
,你不需要表格单元格中的填充和边距CSS。
所有组合的基本示例:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="31" height="53" align="left">
<a href=""><img alt="" src="" width="31" height="53" border="0" style="margin: 0; border: 0; padding: 0; display: block;"></a>
</td>
</tr>
</table>
注意 - 左对齐是默认设置,因此并不是真正需要的。
关于css - 电子邮件模板问题 - 表格过度紧张,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19259290/
我正在开发适用于 Wordpress 的 PSD,并面临着根据颜色过度对齐背景图像或相反的问题。 在桌面上一切都很好,但在移动设备上背景图像变小了(我使用了 background-size: 100%
在标准 Modelica 流体流量源中,通常指定流量或压力。例如,以下边界设置(P 表示压力边界,F 表示流量边界)通常会围绕管道组件: P - 管道 - P F - 管道 - P 但是,有时在同一侧
我正处于设计基于 Azure 的应用程序的早期阶段。考虑到我可能预期的需求的变化性,Azure 吸引我的地方之一是它的可扩展性。因此,我试图保持事物松散耦合,以便我可以在需要时添加实例。 我看到的关于
我与 Xcode 4 dot notation code sense problem 正好相反!点符号的代码完成不仅显示属性,还显示我的方法(在每个完成的左侧标记 P 或 M 分别指示它是属性还是方法
我是一名优秀的程序员,十分优秀!