请问如何设置cell里面的字体大小啊代码有点乱,拷贝过来就是这样了,不好意思public Table test(){
Table t=null;
try {
t = new Table(1,2); t.setBorderColor(new Color(0, 0, 255));//设置边框颜色为蓝色
t.setPadding(5);
t.setSpacing(5);//设置单元格边界
t.setBorderWidth(1);//设置边框宽度
Cell c1 = new Cell("header1");
c1.setHeader(true);
t.addCell(c1);
c1 = new Cell("Header2");
t.addCell(c1);} catch (BadElementException e) {
// TODO 自动生成 catch 块
e.printStackTrace();
}
return t;
}
Table t=null;
try {
t = new Table(1,2); t.setBorderColor(new Color(0, 0, 255));//设置边框颜色为蓝色
t.setPadding(5);
t.setSpacing(5);//设置单元格边界
t.setBorderWidth(1);//设置边框宽度
Cell c1 = new Cell("header1");
c1.setHeader(true);
t.addCell(c1);
c1 = new Cell("Header2");
t.addCell(c1);} catch (BadElementException e) {
// TODO 自动生成 catch 块
e.printStackTrace();
}
return t;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货