创建HTML电子邮件时,某些客户端(如Gmail)可能会破坏您设置的CSS。例如,您可能会将div元素的背景色设置为COLOR,将p标记的颜色设置为白色,但这些样式可能无法在某些电子邮件客户端中正确应用。
7kqas0il1#
<div class="container"> <div class="gmail-blend-screen"> <div class="gmail-blend-difference"> <p>Your text here</p> </div> </div> </div> .container { background-image: linear-gradient(COLOR, COLOR); } p { color:white; } u+.body .gmail-blend-screen { background: #000; mix-blend-mode: screen; } u+.body .gmail-blend-difference { background: #000; mix-blend-mode: difference; }
更多详情:https://www.hteumeuleu.com/2021/fixing-gmail-dark-mode-css-blend-modes/
1条答案
按热度按时间7kqas0il1#
更多详情:https://www.hteumeuleu.com/2021/fixing-gmail-dark-mode-css-blend-modes/