English 中文(简体)
需要相当于 html 电子邮件中的左对齐<hr>
原标题:need the equivalent of a left-aligned <hr> in html email
  • 时间:2012-05-23 01:16:09
  •  标签:
  • html-email

HTML 电子邮件在这里是新建的 。 无法 < 坚固 > 相信 简单的事情在这个舞台上有多难...

我需要一个左对齐, 1 像素高, 350 像素宽, 彩色的线条, 我可以在 HTML 电子邮件中的文本行间放置 。

类似 但当然在各种版本的 Outlook (我需要支持2003+) 和 Entourage (我需要支持 2004+) 中不起作用。 (其他客户并不给我同样的悲伤, 当然) 。

实际 明显无法在 Entourage 中调整, 所以我尝试了各种尝试, 包括 1px high 带有背景颜色。 我尝试打破的一切都在某处 。

任何人都有防弹的方法 来产生这个简单的线 以一个图像?

问题回答

没有办法不为此使用图像 。

您需要做的是添加一个空间图像和背景颜色。

我不确定你的邮件是怎么整理的 但如果这是给我的 我会做这样的事

http://jsfiddle.net/ZsCwX/

<table cellpadding="0" cellspacing="0" width="600">
  <tr>
    <td height="1px" width="350px" style="background-color:#F00;"><img src="image/spacer.gif" alt="" width="350" height="1" style="display:block" border="0" /></td>
    <td height="1px" width="250px"><img src="image/spacer.gif" alt="" width="250" height="1" style="display:block" border="0" /></td>
  </tr>
</table>​

尝试此 :

<tr>
        <td style="padding-top:30px;padding-bottom:30px;">
            <table border="0" cellpadding="0" cellspacing="0" width="350">
                <tbody>
                    <td align="left" bgcolor="#ff0000" style="font-size: 1px; line-height:1px; color:#ff0000">&zwnj;</td>
                </tbody>
            </table>
        </td>
</tr>




相关问题
silverlight in html EMAIL body

I have a news letter which i did in silverlight, is there a way to send it in email. like as you include html tags, is there a way to include silverlight xap package in it.

How to send HTML email

i found a way to send plain text email using intent: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/plain"); emailIntent.putExtra(android....

Email Template Issue

I have a Windows Application from where I am sending the email using Email template images. But on the different SMTP server it shows different result. It attaches the template images as an attachment....

Applying HTML formatting in email s body

I am still trying to figure out, why i cannot apply HTML formatting in the body of a custom email. I am sure i am missing something, or i need a new pair of eyes! Here is the info added to the <...

Is it possible to Embed a Video in Email Newsletter? [closed]

I was wondering if I could send an email with video, where i can embed my wmv or any video files from my website on to a email so that when customers open the email they can click play and watch the ...

What are the possible ways to send a feedback e-mail form?

My professor in the uni has asked me to design a simple website with a basic feedback form. the form should NOT use mailto for sending the feedback form e-mail the form should NOT use server-side ...

My App s email shows up blank in IE7

My app sends out email to users (upon signup, welcome etc.) and they show up blank in IE. Fine in IE8, Firefox. The content-type for the email is set to html. The email has links. Any pointers on how ...

热门标签