gmail html预览删除具有分页符属性的css规则 [英] gmail html preview removes css rule with page-break property

查看:76
本文介绍了gmail html预览删除具有分页符属性的css规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将html页面作为附件发送给我们的用户,他们可以用来打印.当您在浏览器中使用gmail查看html页面时,它会删除所有具有page-break-after属性的css规则.

we are sending html page as attachment to our users which they can use to print. When you view the html page using gmail in browser it removes any css rule with page-break-after property.

我们要强制分页进行打印.

We want to force page-break for printing.

此问题的解决方法是什么.

What is the work around for this.

推荐答案

您无能为力.正如Chipcullen所解释的那样,Gmail会删除网页中除HTML标记内的CSS之外的所有CSS,即使使用那些CSS,它也会做一些奇怪的事情,例如删除 page-break-after 属性.

Nothing you can do about it. As explained by chipcullen Gmail strips out all CSS in webpage except the one inside the HTML tags, and even with those it does strange stuff like removing the page-break-after attributes.

我可以考虑的唯一解决方法保留html文件或服务器,并只需在邮件中发送链接即可代替附件.

The only workaround I can think about is to keep the html file or your server and simply send a link to it in your mail message in place of the attachement.

围绕Google工程师做出的此类决策,我感到非常困惑.也许他们希望用户使用Outlook返回.好吧,他们几乎说服了我.

这篇关于gmail html预览删除具有分页符属性的css规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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