使iframe变性并不起作用

时间:2015-04-27 02:15:06

标签: javascript jquery html html5 html5-canvas

我在客户端页面上添加了iframe。

<iframe id='the-feedback-form-iframe' src='http://test.com/test.html'  frameborder='0' style='position:fixed; bottom:0; right:0; ' allowtransparency="true"></iframe>

test.html页面使用画布在其上绘制形状,该形状充当客户端页面上的叠加层。 enter image description here

绘图完成后,当用户点击&#34;发送&#34;按钮我需要拍摄一个屏幕截图。我使用canvas.toDataURL("image/png");来获取成功捕获图像的图像,但是下面的父页面内容是不可见的。

enter image description here

我尝试使iframe透明,但无法让它工作

0 个答案:

没有答案