Row firstRow = sheet.createRow(0); //第一行
Row secondRow = sheet.createRow(1); //第二行
Row thirdRow = sheet.createRow(2); //第三行
CellStyle style =wb.createCellStyle();
Font f = wb.createFont();
// f.setFontHeightInPoints((short) 16);//字号
f.setFontHeightInPoints((short) 12);//字号
// f.setBoldweight(HSSFFont.BOLDWEIGHT_NORMAL);//加粗
f.setBoldweight(HSSFFont.BOLDWEIGHT_NORMAL);
style.setFont(f);
style.setAlignment(HSSFCellStyle.ALIGN_CENTER);//左右居中
style.setBorderBottom(HSSFCellStyle.BORDER_THIN);//下边框
style.setBorderTop(HSSFCellStyle.BORDER_THIN);//上边框
style.setBorderLeft(HSSFCellStyle.BORDER_THIN);//左边框
style.setBorderRight(HSSFCellStyle.BORDER_THIN);//右边框