如何保存多层(div)的复合材料一层一层地堆叠
我有 10 层 PNG,彼此有不同的 z-index 堆...由于缺点,我不使用画布...所以应该将这一堆压平并保存(导出)为一个 jpg...如何我这样做.. 使用 jquery...
问题#1 - 是否可以将所有层(div)合并为一个? 问题#2 - 是否可以将所有 div 合并到画布上? 问题#3 - 如果使用画布,这是唯一的解决方案吗?
我找到了答案: 将许多画布元素保存为图像 非常有信心让它发挥作用...除非有更好的答案..那就是这样!
I have 10 layers of PNG with different z-index pile on each other... I don't used canvas because of the shortcoming... So that pile should be flatten and save (exported) as one single jpg... how i do that.. with jquery...
Question #1 - is it possible to merge all layer (div) into one ?
Question #2 - is it possible to take all div and merge it to a canvas ?
Question #3 - if canvas is used, is it the only solution ?
I have found that answer : Save many canvas element as image feel pretty confident to make it work... unless better answer.. it will be that !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有更好的答案,我发现: html2canvas... http://html2canvas.hertzen.com/
having no better answer, i have found that : html2canvas... http://html2canvas.hertzen.com/