Html2canvas the functionality of the page by getting style information for the DOM and elements of the page and rendering it into a canvas picture.
Because each browser renders the page differently, the resulting picture is not the same.
Environmental Requirements : JQuery
compatibility : Firefox 3.5+, Chrome, Opera, IE9
Official homepage : http://html2canvas.hertzen.com/
Test the resulting picture effect some elements of the style are not fully displayed
Describes a problem that occurs during the test if you call Todataurl on a page that references a cross-domain picture file
Securityerror:the operation is insecure.
Workaround: Set the header on a cross-domain server to allow cross-domain requests
[HTML]View PlainCopy
- Access-control-allow-origin: * access-control-allow-credentials:true
HTML5 realization of page screenshot page generated pictures (graphic)