Встроенный стиль с икотой ⇐ CSS
-
Anonymous
Встроенный стиль с икотой
I have an html document that I generate with clojure hiccup. When I send the file as an attachment to an email, the css gets stripped out. The css is external and being referenced in the head of the file like below:
[:head [:title "My Title"] (include-css "css/mycss.css")] I heard mail servers strip out all external css so it does not interfere with theirs. One solution I was able to fin was to do an inline styling. For example if I have the below html, how do I perform inline styling on it.
[:thead [:tr [:th "First column"] [:th "Second column"] [:th "Third column"]]] Additionally, feel free to suggest if there is a better answer to what I want to do. Thanks!
Источник: https://stackoverflow.com/questions/255 ... ith-hiccup
I have an html document that I generate with clojure hiccup. When I send the file as an attachment to an email, the css gets stripped out. The css is external and being referenced in the head of the file like below:
[:head [:title "My Title"] (include-css "css/mycss.css")] I heard mail servers strip out all external css so it does not interfere with theirs. One solution I was able to fin was to do an inline styling. For example if I have the below html, how do I perform inline styling on it.
[:thead [:tr [:th "First column"] [:th "Second column"] [:th "Third column"]]] Additionally, feel free to suggest if there is a better answer to what I want to do. Thanks!
Источник: https://stackoverflow.com/questions/255 ... ith-hiccup
Мобильная версия