不要用 \t 制表符。
用
header("Content-type:application/vnd.ms-excel"); //excel头信息header("Content-Disposition:attachment;filename=test_data.xls");?>
/t 只是在单元格内文字的换行符吧 单元格的行号要递增吧