简体   繁体   English

在HTML表格背景中使用Base64编码的图像

[英]Use Base64 encoded image with HTML Table Background

I am trying to setup an email signature and the template I have here uses a 我正在尝试设置电子邮件签名,并且我在此处使用的模板使用

<td background="image.jpg">

I am trying to enter a base64 string into the background but html table backgrounds dont support it like tags. 我正在尝试在背景中输入base64字符串,但是html表格背景不像标签那样支持它。

What would be the best method to convert this? 转换此的最佳方法是什么?

there are containers over this. 上面有容器。

<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#F6F6F6">
    <tr>
        <td width="100%" valign="top" align="center">

            <!-- Start Wrapper  -->
             <table width="600" height="226" cellpadding="0" cellspacing="0" border="0" class="wrapper" bgcolor="#FFFFFF">                     
                 <tr>
                     <td background="images/background copy.png" bgcolor="#7bceeb" width="600" height="226" valign="top">
                          <!--[if gte mso 9]>
                          <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:226px;">
                            <v:fill type="tile" src="images/background.jpg" color="#7bceeb" />
                            <v:textbox inset="0,0,0,0">
                          <![endif]-->
                          <div>

The <td> element does not have a background attribute. <td>元素没有background属性。

To apply a background image to a table cell, use CSS: 要将背景图像应用于表格单元格,请使用CSS:

<td style="background-image: url(…)">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM