fix: 优化excel导出标题样式
This commit is contained in:
parent
c62f3cee5e
commit
ac4bf3465d
@ -466,14 +466,14 @@ public class ExportZipUtil {
|
|||||||
public static CellStyle createHeaderStyle(Workbook workbook) {
|
public static CellStyle createHeaderStyle(Workbook workbook) {
|
||||||
CellStyle style = workbook.createCellStyle();
|
CellStyle style = workbook.createCellStyle();
|
||||||
|
|
||||||
// 背景色:深蓝
|
// 背景色:浅淡的苍白蓝
|
||||||
style.setFillForegroundColor(IndexedColors.ROYAL_BLUE.getIndex());
|
style.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
|
||||||
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
||||||
|
|
||||||
// 字体:白色加粗
|
// 字体:黑色加粗
|
||||||
Font font = workbook.createFont();
|
Font font = workbook.createFont();
|
||||||
font.setBold(true);
|
font.setBold(true);
|
||||||
font.setColor(IndexedColors.WHITE.getIndex());
|
font.setColor(IndexedColors.BLACK.getIndex());
|
||||||
font.setFontHeightInPoints((short) 11);
|
font.setFontHeightInPoints((short) 11);
|
||||||
style.setFont(font);
|
style.setFont(font);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user