[英]Can I use HTML5's Canvas element to load a different web-page within a frame?
例如:如果我要在canvas元素内的网页上加载另一个具有所有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: 我知道这很旧了,但是我偶然发现了Google的这篇文章,因此希望能帮助也会在这里偶然发现的其他人:
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/ http://html2canvas.hertzen.com/
您将不得不在javascript中编写一个html和css解析器以及渲染器。
Not really. 并不是的。 You want to use an the
<iframe>
tag. 您要使用
<iframe>
标记。
http://www.w3schools.com/tags/tag_iframe.asp http://www.w3schools.com/tags/tag_iframe.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.