我可以把< style> ...< / style>标签在HTML文件的正文内发送邮件? [英] Can I put a <style>...</style> tag within the body of a HTML file to send in email?

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

问题描述

解决方案

由于很多电子邮件客户端忽略HEAD标签,我可以在内部嵌入一个内联样式表吗?简短的答案是否定的。 Gmail会剥离标签,并附上内容。



Hotmail,Yahoo!邮件和Windows Live Mail不会剥离body元素中的样式标签。



但请查看HTML终极指南CSSHTML邮件在Campaign Monitor上。


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

解决方案

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

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

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

这篇关于我可以把< style> ...< / style>标签在HTML文件的正文内发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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