打印出html5画布? [英] Print-out of a html5 canvas?
问题描述
我创建了一个简单的基于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屋!