2017-04-04 25 views
0

如果我使用JavaScript导出html div,但不显示在Excel表格中。
如何导出html div与图像?如何将html img标签导出为ex​​cel?

这里是我的代码

<div id="divResults"> 
    <div class="box-header"> 
    <div class="col-md-3"> 
     <img style="padding-left: 50px;" src="@routes.Assets.at(" images/SVCE.png ")"/> 
    </div> 
    <div class="col-md-5"> 
     <center style="padding-top:30px"> 
     <h4>abc def ghi</h4> 
     </center> 
    </div> 
    </div> 
    <table class="table" cellpadding="3" width="80%" border="1" align="center" style="width:80%"> 
    <thead> 
     <tr> 
     <th>a</th> 
     <th>b</th> 
     <th>c</th> 
     <th>d</th> 
     </tr> 
    </thead> 
    <tbody> 
     <tr> 
     <td>1</td> 
     <td>2</td> 
     <td>3</td> 
     <td>4</td> 
     </tr> 
    </tbody> 
    </table> 
</div> 

请帮助我们吗?

回答