Html CSS内联Base64图像

Html CSS内联Base64图像,html,css,Html,Css,这是我的代码: <td height="738" valign="top" width="717" align="center" background="mail_files/paper.png"> 我已将背景文件“paper.png”转换为Base64,并希望将其嵌入其中。有什么办法吗 我试过: <td height="738" valign="top" width="717" align="center" background=url("data:image/jpeg

这是我的代码:

<td height="738" valign="top" width="717" align="center" background="mail_files/paper.png">

我已将背景文件“paper.png”转换为Base64,并希望将其嵌入其中。有什么办法吗

我试过:

<td height="738" valign="top" width="717" align="center" background=url("data:image/jpeg;base64,.....Base64img.....">


但是这不起作用。

如果您使用正确的CSS,这应该会起作用:

<td class="PaperCell" height="738" ...>

如果您要使用正确的CSS,这应该是可行的:

<td class="PaperCell" height="738" ...>

非常感谢。这有帮助。这个方法我完全忘了。谢谢。这有帮助。我完全忘了这个方法。