Can I use bootstrap for designing HTML Email Templ

2019-09-20 12:48发布

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

I know that for designing an 'html email template':

  • 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.

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

1条回答
看我几分像从前
2楼-- · 2019-09-20 13:39

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.

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.

查看更多
登录 后发表回答