我可以放一个<style>...</style>HTML 文件正文中的标记以通过电子邮件发送? [英] Can I put a <style>...</style> tag within the body of a HTML file to send in email?

查看:36
本文介绍了我可以放一个<style>...</style>HTML 文件正文中的标记以通过电子邮件发送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于很多电子邮件客户端都忽略了 HEAD 标签,我可以在正文中嵌入内联样式表吗?

Since a lot of email clients ignore the HEAD tag, can I embed an inline stylesheet in the body?

推荐答案

简短的回答是否定的.Gmail 会删除标签及其内容.

The short answer is no. Gmail strips the tag and it's content.

Hotmail、雅虎!邮件和 Windows Live Mail 不会在正文元素中去除样式标签.

Hotmail, Yahoo! Mail and Windows Live Mail does not strip style-tags in the body-element.

但是在 Campaign Monitor 上查看 HTML 电子邮件的CSS 终极指南".

But take a look at "The Ultimate Guide to CSS" for HTML email over at Campaign Monitor.

这篇关于我可以放一个<style>...</style>HTML 文件正文中的标记以通过电子邮件发送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆