转换一个DIV和内容里面图像 [英] Convert a div and contents inside it to image

查看:157
本文介绍了转换一个DIV和内容里面图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也有一些文字,背景图像,图像的DIV容器。我需要在整个DIV内容转换成图像并保存。

I have a DIV container which has some text, background-image, image. I need to convert that whole DIV contents into image and save.

我身边有GOOGLE了它,但无法找到完美的答案。有些是给使用Windows应用程序的答案,但我需要它在一个网络平台。

I have googled it around but could not find the perfect answer. some are giving answers that uses a windows application , but i need it on a web platform .

任何帮助,将不胜感激。

any help will be highly appreciated

推荐答案

http://html2canvas.hertzen.com/

简化版,支持IE浏览器虽然。看起来比其他固体。

Does't support IE though. Looks solid other than that.

这篇关于转换一个DIV和内容里面图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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