此处将为大家介绍关于css–电子邮件开发–HTML的详细内容,并且为您解答有关核桃马里奥面包的相关问题,此外,我们还将为您介绍关于cssbackground-size和html电子邮件、css–HTM
此处将为大家介绍关于css – 电子邮件开发 – HTML的详细内容,并且为您解答有关核桃马里奥面包的相关问题,此外,我们还将为您介绍关于css background-size和html电子邮件、css – HTML格式的电子邮件不会在Gmail中显示,而是在其他邮件客户端中显示、css – HTML电子邮件中保证金的替代方法是什么?、css – HTML电子邮件中的字体颜色 – Gmail的有用信息。
本文目录一览:- css – 电子邮件开发 – HTML(核桃马里奥面包)
- css background-size和html电子邮件
- css – HTML格式的电子邮件不会在Gmail中显示,而是在其他邮件客户端中显示
- css – HTML电子邮件中保证金的替代方法是什么?
- css – HTML电子邮件中的字体颜色 – Gmail
css – 电子邮件开发 – HTML(核桃马里奥面包)
<style media="screen"> </style> </head> <body bgcolor="#efe1b0"> <!-- Full container for page --> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#efe1b0"> <tr> <td> <!-- Main email container --> <tablewidth="640" align="center" cellspacing="0" cellpadding="0"> <!-- Row 1 (logo) --> <tr> <td valign="top"https://www.jb51.cc/tag/logo/" target="_blank">logo" bgcolor="#ffffff"> <imgsrc="images/large_logo.gif" alt="Our Vineyard" width="585" height="45" border="0"> </td> </tr> <!-- Row 2 (Headline)--> <tr> <td valign="top"bgcolor="#ffffff"> <h1https://www.jb51.cc/tag/nor/" target="_blank">normal; font-size: 32px; color: #723c7f;">Main heading Here</h1> </td> </tr> <!-- Row 3 (Image Banner) --> <tr> <td valign="top" bgcolor="#f5f2e5"> <img src="images/banner_large.jpg" width="638" height="180" alt="Photo of Our Vineyard" /> </td> </tr> <!-- Row 4 --> <tr> <td valign="top" bgcolor="#f5f2e5"> Lorem ipsum dolor sit amet,consectetur adipiscing elit. Etiam commodo justo tellus,non fringilla dolor scelerisque vel. Nam hendrerit eros quis elementum gravida. Cras faucibus accumsan erat at pellentesque. Etiam a ultricies enim,eget lacinia sem. Integer et elit orci. Morbi ac mauris sapien. Suspendisse viverra pellentesque orci,imperdiet posuere erat aliquam eu. <br><br>Enjoy,<br> <img src="images/josh.gif" width="90" height="40" alt="Joshua" /> </td> </tr> <!-- Row 5 --> <tr> <td> </td> </tr> <!-- Row 6 --> <tr> <td> </td> </tr> <!-- Row 7 --> <tr> <td> </td> </tr> </table> </td> </tr> </table> </body> </html>
解决方法
<tr> <td valign="top"https://www.jb51.cc/tag/logo/" target="_blank">logo" bgcolor="#ffffff"> <imgsrc="images/large_logo.gif" alt="Our Vineyard" width="585" height="45" border="0"> </td> </tr><tr> <td valign="top"bgcolor="#ffffff"> <h1https://www.jb51.cc/tag/nor/" target="_blank">normal; font-size: 32px; color: #723c7f;">Main heading Here</h1> </td> </tr><tr> <td valign="top" bgcolor="#f5f2e5"> <img src="images/banner_large.jpg" width="638" height="180" alt="Photo of Our Vineyard" /> </td> </tr>
css background-size和html电子邮件
<div></div>
这在大多数浏览器上工作正常,但我需要在html电子邮件中重现相同的内容,不幸的是,电子邮件客户端似乎无法识别“背景大小”.
有没有一种简单的方法来在HTML电子邮件中裁剪图片?
谢谢你的帮助.
解决方法
这是非常沮丧的.见 Which email clients support CSS3?
css – HTML格式的电子邮件不会在Gmail中显示,而是在其他邮件客户端中显示
奇怪的部分是从一个标签的img正在加载,但这是关于它…是我是大多使用divs的布局,这是新的Gmail或什么(vs表)?
就CSS和什么不去,查看原始来源显示以下内容:
<html><head><style>body { background-color: #F2F2F2; font-family: Arial; color: #5C5C5C; font-size: 11pt; } a { color: #46AAFF; text-decoration: none; } #container { width: 750px; margin-right: auto; margin-left: auto; } #header { float: right; padding: 3px; height: 30px; } #header a { color: #666666; margin-right: 10px; } #mainBody { padding: 20px; background-color: #FFF; border: 1px solid #DADADA; border-radius: 3px; } #imageArea { border-top: solid #E8E8E8 1px; margin: 15px; } #singleImageArea { width: 250px; padding: 15px; } #singleImageArea p { float: right; line-height: 30px; width: 130px; margin-top: 20px; } #footer { padding: 10px; color: gray; } #footer p { text-shadow: 0px 2px #FFF; font-size: 10pt; } #footer a { color: #ADADAD; float: right; padding-left: 20px; padding-right: 20px; } #footer img { width: 35px; height: 23px; padding: 10px; float: left; } </style></head><body><div id="container"><div id="header"><a href="http://appname.local/login/">Login</a></d iv><div></div><div id="mainBody"><h1>Hi Josh Holat!</h1>You've sent a request to <strong>reset</strong> your appname password. Just click the link below <em>(or copy and paste it into your browser)</em> and follow the instructions to set a new password. The link will expire in one hour.<br/><br/><a href="http://appname.local/sb/reset-password/?r=2768af61698fcde9c04f9449351575d6bfe6d720">http://appname.local/sb/reset-password/?r=2768af61698fcde9c04f9449351575d6bfe6d720</a><br/><br/>If you feel this request was submitted in error,don't worry; you can safely ignore this e-mail and your password will not be changed.<br/><br/>Much love,<br/>Us</div><!-- #mainBody --><div id="footer"><img src="http://appname.local/images/email/footer_sb.png" /><p>© 2011 appname,Inc. All Rights Reserved <a href="http://appname.local/sb/legal/">Legal</a><a href="http://appname.local/sb/contact/">Contact</a><a href="http://s tagebloc.local/sb/developers/">Developers</a><a href="http://appname.local/sb/blog/">Blog</a></p></div><!-- #footer --></div><!-- #container --></body></html>
以及:
Delivered-To: appname@gmail.com Received: by 10.229.40.2 with SMTP id i2cs133298qce; Sun,28 Aug 2011 14:29:08 -0700 (PDT) Received: by 10.42.152.199 with SMTP id j7mr4419937icw.417.1314566947950; Sun,28 Aug 2011 14:29:07 -0700 (PDT) Return-Path: <_www@joshholat.local> Received: from joshholat.local (arh2281.urh.uiuc.edu [130.126.70.193]) by mx.google.com with ESMTP id w3si6800550icz.109.2011.08.28.14.29.06; Sun,28 Aug 2011 14:29:06 -0700 (PDT) Received-SPF: neutral (google.com: 130.126.70.193 is neither permitted nor denied by best guess record for domain of _www@joshholat.local) client-ip=130.126.70.193; Authentication-Results: mx.google.com; spf=neutral (google.com: 130.126.70.193 is neither permitted nor denied by best guess record for domain of _www@joshholat.local) smtp.mail=_www@joshholat.local Received: by joshholat.local (Postfix,from userid 70) id 775063662E01; Sun,28 Aug 2011 16:29:06 -0500 (CDT) To: Josh Holat <appname@gmail.com> Subject: Password Reset Request X-PHP-Originating-Script: 501:Email.PHP From: appname <noreply@appname.com> Content-type: text/html Message-Id: <20110828212906.775063662E01@joshholat.local> Date: Sun,28 Aug 2011 16:29:06 -0500 (CDT)
我很困惑为什么第三方客户会显示它很好,但Gmail只是忽略它?
解决方法
这是一个参考列表。
http://www.campaignmonitor.com/css/
css – HTML电子邮件中保证金的替代方法是什么?
解决方法
由于这个答案看起来有点模糊,我还想指出a very complete answer,其中详细介绍了html电子邮件.
注意:
When it comes to email HTML,note that all best practices from web development goes out the window.
css – HTML电子邮件中的字体颜色 – Gmail
<tr>
但是当我在gmail中打开这个电子邮件时,字体家族和黑色被gmail风格所覆盖.我通过Firebug看到这个:
正在使用紫色,而不是我想要的黑色,而字体系列则默认为arial,sans-serif.有没有人知道一种方式来安全地覆盖gmail强迫我的样式?
UPDATE
我将颜色改为非黑色,即#212a2c,颜色正确变化,但是字体仍然停留在arial上.
解决方法
今天关于css – 电子邮件开发 – HTML和核桃马里奥面包的分享就到这里,希望大家有所收获,若想了解更多关于css background-size和html电子邮件、css – HTML格式的电子邮件不会在Gmail中显示,而是在其他邮件客户端中显示、css – HTML电子邮件中保证金的替代方法是什么?、css – HTML电子邮件中的字体颜色 – Gmail等相关知识,可以在本站进行查询。
本文标签: