我有一个div包含这样的图像:
<div id="Created_Design">
<img src="images/image1.png" style="position: absolute; left: 8px; top: 172px;">
<img src="images/image2.png" style="position: absolute; left: 20px; top: 144px">
</div>
Run Code Online (Sandbox Code Playgroud)
我想导出这个div作为图像因为我创建像设计生成器的东西.到目前为止,我所做的是使用window.open将新创建的设计放在新窗口上,就像预览设计一样.
所以我的问题是: