发布于 4年前
phpExcel 如何设置自动列宽
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(25); //固定列宽
$objPHPExcel->getActiveSheet()->getColumnDimension('B')->setAutoSize(true); //自动列宽
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(25); //固定列宽
$objPHPExcel->getActiveSheet()->getColumnDimension('B')->setAutoSize(true); //自动列宽