HTML导出Excel换行问题

在Excel 中, 它有自己的Style样式标准,
换行的方法在HTML中用如下style: 
  1. <br style='mso-data-placement:same-cell;'/>

Cell and row breaks

The BR tag has a mso-data-placement style attribute specifying where the data is stored. The attribute can have one of the following string constants: new-cell means to start a new cell in the next row after the break and same-cell means that the break is in a cell.


For more information on using HTML and XML with Excel , see "Microsoft Office HTML and XML Reference"
at the following MSDN Web site: http://msdn2.microsoft.com/en-us/library/Aa155477(office.10).aspx

你可能感兴趣的:(js/html/css技巧,.Net,AJAX/jQuery,excel,html,constants,microsoft,reference,xml)