我可以使用bootstrap来设计HTML电子邮件模板吗? [英] Can I use bootstrap for designing HTML Email Templates

查看:179
本文介绍了我可以使用bootstrap来设计HTML电子邮件模板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要设计一个 HTML电子邮件模板,通过电子邮件发送给我的客户。

I need to design an HTML email template which is sent through email to my clients.

我知道设计一个'html电子邮件模板':


  • 没有css文件应链接,所有样式都应该内联到html。

  • 所有图片都应通过在线服务器网址引用,不应存储在本地。

  • No css files should be linked, all styling should be inline to html.
  • All images should be referenced through online server url and should not be stored locally.

我的问题是:我可以在html中使用 bootstrap 设计 HTML电子邮件,而无需下载并链接为css文件本地?

My question is: Can I use bootstrap in html for designing an HTML email without downloading it and linking as a css file locally?

推荐答案

没有。 Bootstrap是一个预定义的框架,包含元素和类的属性,它们完全使用外部css(在外部文件中定义元素和类的属性)。由于外部css不能用于设置电子邮件样式,因此也无法使用Bootstrap。

No. Bootstrap is a pre-defined framework containing properties for elements and classes which is used using external css entirely (with the properties for elements and classes being defined in an external file). Since external css can't be used to style e-mails, Bootstrap can't be used either.

有人可能会说他们可以从Bootstrap中复制代码。 css文件并使用< style>< / style> 标签粘贴它,但即便如此,内部css和电子邮件也不允许这样做。电子邮件只允许内联css。因此,Bootstrap不能用于电子邮件,因此不能用于电子邮件模板。

One might say that they can copy the code from the Bootstrap.css file and paste it withing <style></style> tags but even that is internal css and e-mails don't allow that. E-mails only allow inline css. So, Bootstrap can't be used in e-mails, and hence not in e-mail templates.

这篇关于我可以使用bootstrap来设计HTML电子邮件模板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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