Paste a HTML table into Excel, how to keep the line break in cell

前端 未结 5 972
梦谈多话
梦谈多话 2021-02-12 12:08

I have a simple html table, for example, just one cell, but when I copy the dom node, and paste it into excel, it will be recognize as two rows, How to make Excel get the correc

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-12 13:05

    If you really need to do a copy-paste, it would be better to edit the 'Cell properties' in the excel sheet before copying the data. Right-Click on the column name in the excel and select cell properties. Make the changes as applicable for your data and save. Now you can copy your data and hope that it is interpreted correctly in MS-Excel. I haven't used it for HTML content, though.

提交回复
热议问题