打印友好页面选项卡(Print Friendly Page Tab)

编程入门 行业动态 更新时间:2024-10-28 19:32:46
打印友好页面选项卡(Print Friendly Page Tab)

我有一个FB应用程序,显示我们的页面粉丝的粉丝门控优惠券。 当你去打印优惠券时,Facebook的右侧边栏会自动插入页面中间。

我试图仅通过javascript打印iFrame,但Facebook并不喜欢这样。 我假设他们也不允许弹出窗口,但我们也不想做弹出窗口。

有没有其他方法来欺骗页面更友好的打印?

I have a FB app that displays a fan-gated coupon for our page's fans. When you go to print the coupon, Facebook's right-hand sidebar plops itself right in the middle of the page.

I tried to print the iFrame only via javascript, but Facebook didn't like that. I'm assuming they wouldn't allow a popup either, but we wouldn't want to do a popup anyway.

Is there any other way to trick the page into being more print-friendly?

最满意答案

我已经遇到类似的问题,

我的解决方案是创建一个链接,将用户带出Facebook,打印友好的代码优惠券。 您可以使用<a target="_blank">或仅将window.top.location更改为可打印页面。

希望这有帮助!

I've already run into similar issue to,

My solution have been to create a link bringing user out of Facebook with a print friendly code coupon. You could use <a target="_blank"> or just changing the window.top.location to your printable page.

Hope this help!

更多推荐

本文发布于:2023-07-14 20:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1107182.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   友好   页面   Print   Page

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!