rainabba / jquery-table2excel

jQuery Plugin to export HTML tabled to Excel Spreadsheet Compatible Files
593 stars 666 forks source link

Version 1.1.1 cant not merge cells in Chrome #73

Open zealzhangz opened 7 years ago

zealzhangz commented 7 years ago

When I use version 1.0.2 if my HTML table cells was merged.The exported Excel file is also merged.When I upgraded to version 1.1.1 It not work.Here's part of my code.

<table class="table table-bordered table-hover" id="table4">
    <thead>
    <tr>
        <th>A</th>
        <th>B</th>
        <th>C</th>
        <th>D</th>
        <th>E</th>
        <th>F</th>
        <th>G</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>H</td>
        <td>I</td>
        <td>J</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
    </tr>
    <tr>
        <td>H</td>
        <td>I</td>
        <td>J</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
    </tr>
    <tr>
        <td>H</td>
        <td>I</td>
        <td>J</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
    </tr>
    <tr>
        <td colspan="3">Toal</td>
        <td>3</td>
        <td>3</td>
        <td>3</td>
        <td>3</td>
    </tr>
    </tbody>
</table>
<br/>
<button class="btn btn-primary" id="button6">Export</button>
    $('#button6').click(function () {
        $("#table4").table2excel({
            exclude: ".noExl",
            name: "Worksheet Name",
            filename: "table4.xls"
        });
    });
2017-06-08 16 09 05