HSSFCellStyle styleTitle = wb.createCellStyle(); // 标题样式
styleTitle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
styleTitle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
poi 3.17设置背景颜色,需要setFillPattern
最新推荐文章于 2024-05-10 17:51:50 发布