简体   繁体   中英

The image I want for my background isn't showing up in my html email code

I just started learning how to code up html emails yesterday and I'm having an issue with the image I want to set as the background of my html email that I send.

Here is the code at the top where i have the background image in the first table set.

If I try to add an img src tag in the tr or the td below it, the background shows but it's cut off.

Everything else works (I have buttons as images such as the one labeled "SHOP NOW!" that work fine) except the background image and this is getting frustrating!

<html>
<body>
<table width="600" cellpadding="0" cellspacing="0" border="0" height="711" align="center" background='http://i44.tinypic.com/21edv6q.jpg' style='vertical-align: bottom;'>
  <tr>
    <td height='588' style='vertical-align: bottom; padding-left: 20px;'>
      <a href="http://www.jbn.com/cart/index.php?route=product/categor &path=172_247" target="_blank">
        <img src="http://i43.tinypic.com/2ngvebl.jpg" alt="SHOP NOW!" />
      </a>
    </td>
  </tr>

I think you have your image in your body tag

<body background="http://i44.tinypic.com/21edv6q.jpg">

see http://www.w3schools.com/tags/att_body_background.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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