我有这个代码
<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=export.xls");
// Fix for crappy IE bug in download.
header("Pragma: ");
header("Cache-Control: ");
echo $_REQUEST['datatodisplay'];
?>
Run Code Online (Sandbox Code Playgroud)
它将来自html表的数据放入excel,但唯一的问题是我没有看到表格中的网格线.我错过了什么吗?谢谢