function(){ if(this.length>7) return "<div style='font-size:1px'>"+this.substr(0,parseInt(this.length/2))+""+this.substr(parseInt(this.length/2))+"</div>"; else return "<div style='font-size:1px'>"+this+"</div>"; }
function(){
if(this.length>4)
return "<div style='font-size:1px;text-align:center'>"+this.substr(0,parseInt(this.length/2))
+""
+this.substr(parseInt(this.length/2))+"</div>";
else return "<div style='font-size:1px'>"+this+"</div>";
}
————————————————————————
https://help.fanruan.com/finereport/doc-view-1882.html
就算是自定义,也会对齐的,你截个图看看效果