我試圖讓我的電子郵件背景工作。 當我使用: style="background: #3b72bb url('https://s1.postimg.org/sample/image.jpg') no-repeat; background-size: cover;"
它工作正常。 但由於我使用的是: style="background: #3b72bb url('img/image.jpg') n
我發送帶模板的郵件使用百里香,但圖像正在附加,它不會發生。這裏是我的代碼: HTML: <!-- I need put the image backgroud via css!-->
<body th:style="'background-image: url('+ |cid:${background}| +')'">
<!--my image-->
<img src="..