使用javascript将网页转换为图像 [英] Converting Webpage into image using javascript

查看:80
本文介绍了使用javascript将网页转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
使用 HTML5/Canvas/Javascript 截取屏幕截图

我有 1 个网页,在其中我以表格的形式从 db 获取一些详细信息我希望将该页面另存为图像,以便我可以将该图像邮寄给用户.有人可以帮我吗

I am having 1 webpage in which I am getting some details from db in the form of table I want that page to be saved as an image so that that image I can mail it to the user.Can anybody help me out please

推荐答案

你可能想看看 HTML 2 Canvas 可以将 DOM 的某些部分渲染到画布中.但是,这可能仅适用于允许您使用画布对象的浏览器,因为它们是 HTML5 规范的一部分.

You might want to look at HTML 2 Canvas which can render some parts of the DOM into a canvas. However, this might only work on in a browser allowing you to use canvas objects as they are part of the HTML5 specification.

这篇关于使用javascript将网页转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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