开发者

Can I use HTML5's Canvas element to load a different web-page within a frame?

开发者 https://www.devze.com 2023-01-30 16:23 出处:网络
For开发者_Go百科 example: If i want to load on my webpage within the canvas element another web-page with all its css I know this is old but I stumbled onto this post from google so in the hope of hel

For开发者_Go百科 example: If i want to load on my webpage within the canvas element another web-page with all its css


I know this is old but I stumbled onto this post from google so in the hope of helping others that may also stumble here:

Check this project out, does just what you want. Please note, that it's far from perfect but its a really impressive feat.

http://html2canvas.hertzen.com/


You would have to write an html and css parser and renderer in javascript.


Not really. You want to use an the <iframe> tag.

http://www.w3schools.com/tags/tag_iframe.asp

0

精彩评论

暂无评论...
验证码 换一张
取 消