【发布时间】:2013-07-04 10:19:05
【问题描述】:
我在使用插件 phpword 时遇到问题。我正在尝试更改样式,但我可以更改单元格的背景,并且它会考虑其他参数。
$styleTable = array('borderColor'=>'006699',
'borderSize'=>6,
'cellMargin'=>50,
'valign'=>'center'
);
$styleFirstRow = array('bgColor'=>'6086B8',
'color'=>'white',
'bold'=>true,
'size'=>11,
'valign'=>'center'
);
$PHPWord->addTableStyle('myTable', $styleTable, $styleFirstRow);
如果你想看我的代码,他在这里:http://pastebin.com/pw36n3aW
【问题讨论】: