我在客户端页面上添加了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页面使用画布在其上绘制形状,该形状充当客户端页面上的叠加层。
绘图完成后,当用户点击&#34;发送&#34;按钮我需要拍摄一个屏幕截图。我使用canvas.toDataURL("image/png");
来获取成功捕获图像的图像,但是下面的父页面内容是不可见的。
我尝试使iframe透明,但无法让它工作