在文件中,我有导出文件的标题到MS EXCEL
Session.CodePage=65001
response.charset="utf-8"
Server.ScriptTimeout = 9999999
response.write "<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""> "
response.ContentType = "application/vnd.ms-excel"
response.AddHeader "content-disposition","attachment;filename=websad_ExcelPlan.xls"
Response.Buffer = true
我创建了一个HTML表格:
<table>
<tr>
<td colspan="2">A</td>
</tr>
<tr>
<td>B</td>
<td>C</td>
</tr>
</table>
但忽略属性colspan
。如何在导出中使用colspan
?
答案 0 :(得分:0)
删除colspan值中的double qoutes ..它应该像这个colspan = 8