是否有在一封电子邮件中的布局关闭Gmail应用程序的自动调整大小功能的方法? [英] Is there a method of turning off the Gmail App's Auto-resize feature in an email's layout?

查看:193
本文介绍了是否有在一封电子邮件中的布局关闭Gmail应用程序的自动调整大小功能的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我奠定了跨浏览器和移动平台进行查看电子邮件,大多都进展顺利。它奠定了在表,使用内联样式等等。然而,尽管媒体查询到600px的最大宽度的效果,至少我和另外一个Android的Gmail应用我有机会获得正在决定来调整图像和布局以适应使用媒体查询,或让它适合自己到窗口正常,其中任何一个就可以了到它的区域来代替。

有关个人使用,我能够关闭自动调整大小'在我的手机上,然后将邮件列举了,因为它会在浏览器中。

有没有一种手段,或者​​告诉Gmail应用不使用自动调整大小从电子邮件大小或使用媒体查询呢?

解决方案

 < META NAME =视口内容=WIDTH =装置宽度,初始规模= 1/ >
 

然后设置风格属性上的图像(1px的GIF作品)跨越页面的整个宽度(风格=最小宽度:600px的;)。一切都将被正确地摆出来,这将是滚动的。

在Gmail中一般不支持媒体查询,或在一般的风格标签,这就是为什么我们必须内嵌移动的一切。

I'm laying out an email to be viewed across browsers and mobile platforms and mostly all is going well. It's laid out in tables, using inline styling etc. However, despite a media-query to the effect of a 600px max-width, the Gmail app on at least my and one other Android I have access to is opting to resize the images and layout to fit into it's area instead of using the media query or letting it fit itself into the window normally, either of which would be fine.

For personal use, I'm able to 'turn off auto-resize' on my phone, and then the email lays out as it would in a browser.

Is there a means to either tell the Gmail app not to auto-resize from the email size or to use the media query instead?

解决方案

<meta name="viewport" content="width=device-width, initial-scale=1"/>

Then set the style attribute on an image (1px gif works) that spans the full width of the page (style="min-width:600px;"). Everything will be laid out correctly, and it'll be scrollable.

Gmail in general doesn't support media queries, or the style tag in general, which is why we have to move everything inline.

这篇关于是否有在一封电子邮件中的布局关闭Gmail应用程序的自动调整大小功能的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆