fix: 优化excel导出标题样式

This commit is contained in:
tangwei 2026-08-05 18:32:02 +08:00
parent c62f3cee5e
commit ac4bf3465d

View File

@ -466,14 +466,14 @@ public class ExportZipUtil {
public static CellStyle createHeaderStyle(Workbook workbook) {
CellStyle style = workbook.createCellStyle();
// 背景色
style.setFillForegroundColor(IndexedColors.ROYAL_BLUE.getIndex());
// 背景色浅淡的苍白
style.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
// 字体色加粗
// 字体色加粗
Font font = workbook.createFont();
font.setBold(true);
font.setColor(IndexedColors.WHITE.getIndex());
font.setColor(IndexedColors.BLACK.getIndex());
font.setFontHeightInPoints((short) 11);
style.setFont(font);