How to save a rendered webpage as image with JavaScript?

前端 未结 3 2170
有刺的猬
有刺的猬 2020-12-08 21:23

In my app I have to provide a \'save as image\' button. I want to save the HTML rendered on my webpage as an image in JavaScript. It is a webapp and will be used in browsers

3条回答
  •  庸人自扰
    2020-12-08 21:57

    Using http://html2canvas.hertzen.com/

    index.php

    
    
    
    
    
              
    Image

    " />

    save.php

    
    

提交回复
热议问题