我正在编写一个 HTML/CSS 电子邮件模板,用于触发 Gmail 和其他邮件。但是,Gmail 不会加载 <style>
block ,所以我必须使用内联“样式”属性来使其工作。
为了说明问题:
<style>
.center {
text-align:center;
}
</style>
<a class="center"> text </a>
转换为:
<a class="center" style="text-align:center;"> text </a>
这里有人知道更好的方法或程序吗?
最佳答案
有一个专为这项工作设计的网络应用程序。
Converts CSS rules into inline style attributes
关于html - 有什么方法可以将 block 样式/CSS 转换为内联 CSS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32853317/