普通表: 脚本如下: var loc = new Locator(["省份"],CELL,DETAIL); var loc1 = new Locator(["咖啡因类型"],CELL,DETAIL); var loc2 = new Locator(["利润总和"],CELL,DETAIL); var color1 = new Color(java.awt.Color.RED); var color2 = new Color(155,209,143); var colors = [color1,color2,color1,color2]; 表1.setBorderColors(loc,colors); 表1.setBorderColors(loc1,colors); 表1.setBorderColors(loc2,colors); 效果图: 交叉表: 脚本如下: var loc=new Locator(["省份","咖啡因类型","利润总和"],CELL,DETAIL); var color1 = new Color(java.awt.Color.RED); var color2 = new Color(155,209,143); var colors = [color1,color2,color1,color2]; 交叉表1.setBorderColors(loc,colors); 效果图: 自由式表格: 脚本如下: var loc = new Locator(["1,1"],CELL,DETAIL);//数据区域 var color1 = new Color(java.awt.Color.RED); var color2 = new Color(155,209,143); var colors = [color1,color2,color1,color2]; 自由式表格1.setBorderColors(loc,colors); 效果图: |