根据this CSS guide Gmail 不支持 background-position
、left
、right
和其他 CSS 属性。
我有一个带背景的 div,我想将此图像放在该 div 的右侧。
这是我的 HTML -
<div style="background-image: url('pic.jpg'); background-position:right; background-repeat: no-repeat;" dir="rtl">
由于 Gmail 不支持背景位置
,我没有得到所需的输出。
有什么办法可以实现这一点吗?
最佳答案
使用速记法。它可以让您在 Gmail 中使用后台位置。
background: url(path/to/image.jpg) no-repeat left;
关于css - 除了 "background-position"之外,还有其他方法可以在 Gmail 中获得支持吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25216744/