Issue stopping iPhone resizing HTML e-mails

后端 未结 5 2148
一向
一向 2021-02-07 08:59

I\'m having an issue trying to prevent the iPhone from resizing HTML e-mails to fit the screen. It seems that code below when put into the section has no effect.

My goa

5条回答
  •  别那么骄傲
    2021-02-07 09:18

    I been stuck w/ this problem and there's no available solution on the net that works. Not until I realized what's causing this.

    CAUSE: This problem occurs if you have an image w/in the email. When the image auto-scale, the entire email/page will auto-fit in the window.

    SOLUTION: Add inline style for the image for min-width (300px so it doesn't take the entire 320px iphone width), max-width (your desired max with), and width of 100%.

    i.e. image src="image.jpg" style="width: 100%; min-width: 300px; max-width: 500px;"

    Worked for me, ...hoping this can help you too! ;-)

提交回复
热议问题