How to include CSS styles inline in Razor view?

后端 未结 3 1005
清歌不尽
清歌不尽 2020-12-28 16:23

I am using Postal to render MVC Razor views and send them via email. I have a custom CSS that I have defined specifically for the email views. Currently I am including them

3条回答
  •  余生分开走
    2020-12-28 17:07

    I guess you will need to have a custom helper for that. On top of my head, there is no such a method to render the css path including the absolute path of the website.

    e.g. http:www.example.com/css/EmailStyles.css

提交回复
热议问题