php下载头
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=test.xls");
header("Content-Type: application/force-download");
html table 表格内容
table 数字格式
1) 文本:vnd.ms-excel.numberformat:@
2) 日期:vnd.ms-excel.numberformat:yyyy/mm/dd
3) 数字:vnd.ms-excel.numberformat:#,##0.00
4) 货币:vnd.ms-excel.numberformat:¥#,##0.00
5) 百分比:vnd.ms-excel.numberformat: #0.00%
<td style=’vnd.ms-excel.numberformat: #0.00%’>0.25</td>
如果多个格式则就近显示最近的格式设置