打印出html5画布? [英] Print-out of a html5 canvas?

查看:190
本文介绍了打印出html5画布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个简单的基于html的网页,包含一个表单和一些文本,以及一个画布。我想在一张纸上打印包括画布的页面,问题是 - 画布不会显示在打印输出中。是我错过了如何处理画布的东西?
我目前正在使用Opera,任何知识,其他浏览器是否处理这更好?

解决方案

这种情况是,有一个特殊的打印视图,其中画布被图像文件替换,然后可以轻松打印出来。



看看这里:捕获HTML画布为gif / jpg / png / pdf?


I have created a simple html-based web-page consisting of a form and some text, plus a canvas. I would like to print the page including the canvas on a piece of paper, the problem is - the canvas will not show in the print-out. Is it something I have missed in how to handle the canvas? I am currently using Opera, any knowledge whether other browsers handle this better?

解决方案

what you need to do in this case is, have a special print view, where the canvas gets replaced by an image file, which then can be printed out easily.

have a look here: Capture HTML Canvas as gif/jpg/png/pdf?

这篇关于打印出html5画布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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