【发布时间】:2015-06-19 16:48:05
【问题描述】:
我设计了一个包含多个元素的响应式电子邮件,每个元素都有一个主图像。
为了防止图像在 iphone 和更高的分辨率下中断,我有:
img { max-width: 320px !important; height: auto !important; }
但是,小于 320 像素的图像会缩放到这个宽度。我用以下方法解决了这个问题:
img { max-width: 100% !important; width: auto !important; height: auto !important; }
这适用于主图像,但随后业务徽标会调整为其父容器的 100%。
如何充分利用每种解决方案?
【问题讨论】:
标签: html css responsive-design html-email