解决方案:在标签里面加上
style = "text-align:center; word-break: break-all"
例如:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="data_table">
<tbody id="tbody">
<tr>
<th width="10%">操作人编号</th>
<th width="10%">操作人</th>
<th width="25%">操作名称</th>
<th width="15%">操作接口</th>
<th width="25%">操作接口类</th>
<th width="15%">操作时间</th>
</tr>
#if($employeeActionLogs)
#foreach($employeeActionLog in $employeeActionLogs)
<tr>
<td style = "text-align:center; word-break: break-all">$!employeeActionLog.employeeId</td>
<td style = "text-align:center; word-break: break-all">$!employeeActionLog.employeeName</td>
<td style = "text-align:center; word-break: break-all">$!employeeActionLog.operation</td>
<td style = "text-align:center; word-break: break-all">$!employeeActionLog.operationUrl</td>
<td style = "text-align:center; word-break: break-all">$!employeeActionLog.typeName</td>
<td style = "text-align:center; word-break: break-all">$!date.format(
'yy年MM月dd日HH时mm分ss秒',$!employeeActionLog.operationDate)</td>
</tr>
#end
#end
</tbody>