$objWriteHTML = new \PHPExcel_Writer_HTML(\PHPExcel_IOFactory::load(\公众C:/Users/jijia2/Desktop/aa.xlsx\"大众));
//获取样式
$css=$objWriteHTML->generateStyles();
//获取excel数据
$data = $objWriteHTML->generateSheetData();
$html = $css.$data;
前端展示这个$html就可以了
$objWriteHTML = new \PHPExcel_Writer_HTML(\PHPExcel_IOFactory::load(\公众C:/Users/jijia2/Desktop/aa.xlsx\"大众));
//获取样式
$css=$objWriteHTML->generateStyles();
//获取excel数据
$data = $objWriteHTML->generateSheetData();
$html = $css.$data;
前端展示这个$html就可以了