将背景图像放置在
浏览一些 html 电子邮件示例,我注意到都是关于表格的。我想要主表的某一行内的图像看起来像一半图像在表外,另一半在表内。我无法找到解决方案来做到这一点。
任何帮助将不胜感激,非常感谢 这就是我喜欢的。
橙色细线将是表格边框 我让它在网页中工作,我可以在其中使用 div 和大量样式表,但在嵌入电子邮件的 html 中还没有找到方法。正如你所看到的,图像上方有文字和图像
Looking through some html email examples, I noticed is all about tables. I wanted an image inside of one of the rows of the main table to look like half of the image is outside the table and the other half inside. I can't get the solution to do that.
Any helps would be appreciated, really appreciated
Here's is what I like.
The orange thin line would be the table border
I got it working int the webpage where I can use divs and a lot of stylesheet but in html embedded in email haven't found the way. As you can see there's text and images above the image
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这里,我设法创建一个简单的示例:
您基本上要做的是:
)
文本
此处可能有文本 >
jsFiddle 上的实时示例(已更新,现在包括边框)
Here, I managed to create a simple example:
What you're basically doing is:
<td>
s)<td colspan="2">text</td> <td></td>
<td>maybe text here</td> <td colspan="2"> <img/> </td>
Live example on jsFiddle (updated, it includes borders now)
恐怕这是无法做到的:背景图像将仅跨越它所在的元素,不再进一步。
您也许可以使用一个巨大的、不可见的单元格来执行某些操作,使您的表格扩展到可见数据之外。
I'm afraid this can't be done: A background image will span only as far as the element it is in, no further.
You may be able to do something with a huge, invisible cell that makes your table extend beyond the visible data.