CSS in body of SSRS subscription email

2019-08-09 22:59发布

As per the title is this possible?

It seems to only pick up the HTML and ignore the CSS which is just displayed as text.

1条回答
Animai°情兽
2楼-- · 2019-08-09 23:28

The content of the comment block of a subscription is embedded as a table in the email output, so you won't be able to include CSS in a <style> tag as expected.

An option is to use an inline style attribute, which is applied to the email content. For example:

<span style="font: 14px Lucida, Arial, Helvetica, sans-serif">Test email</span>

This page can help with conversion from a CSS block to inline styles so you don't have to do it by hand.

查看更多
登录 后发表回答