我试图发送一个带有证书的HTML电子邮件。
。
问题是图像没有到达中心。另外,如果我删除分区的宽度和高度,水印就会消失。
这里是我的
<div id="watermark">
<img src="https://js.pngtree.com/web3/images/home/web_heart_animation.png" height="110%" width="100%" />
</div>这里是我的CSS
body{
font-family: 'Arial';
}
#watermark {
position: fixed;
/**
Set a position in the page for your image
This should center it vertically
**/
bottom: 3cm;
left: -1cm;
/** Change image dimensions**/
width: 22cm;
height: 22cm;
/** Your watermark should be behind every content**/
z-index: -1000;
}
@media print {
#footer {
position: fixed;
bottom: 0;
}
}发布于 2020-12-02 22:03:59
1.HTML电子邮件不同于普通的HTML代码,因为大多数电子邮件引擎都不支持标题中的CSS样式表或CSS。您需要编写内联CSS。
中保持一致并看起来很好看。
How make background image on newsletter in outlook?电子邮件模板中的背景图像的解决方案:
https://stackoverflow.com/questions/65116153
复制相似问题