Java Spring MIMessageHelper将背景图像添加到div
我正在尝试使用mimessagehelper向电子邮件中的div添加背景图像。该图像在后端的字节数组中转换,我正试图通过 mimessagehelper.addInline 我已尝试通过以下代码添加它:Java Spring MIMessageHelper将背景图像添加到div,java,html,background,mime,Java,Html,Background,Mime,我正在尝试使用mimessagehelper向电子邮件中的div添加背景图像。该图像在后端的字节数组中转换,我正试图通过 mimessagehelper.addInline 我已尝试通过以下代码添加它: <div id="triangles" style="height: 160px; background-image:url( data:image/png;base64, cid:trianglesBig.png); text-align:center; font-size: 180%;
<div id="triangles" style="height: 160px; background-image:url( data:image/png;base64, cid:trianglesBig.png); text-align:center; font-size: 180%;">
但它不起作用
你能帮忙吗