$objWriteHTML = new \PHPExcel_Writer_HTML(\PHPExcel_IOFactory::load(\"大众C:/Users/jijia2/Desktop/aa.xlsx\公众));

//获取样式

$css=$objWriteHTML->generateStyles();

phphtml转execlphpexcel将excel转为html直接展现在页面上 Java

//获取excel数据

$data = $objWriteHTML->generateSheetData();

$html = $css.$data;

前端展示这个$html就可以了