在PHPWord中,是否可以将子弹颜色更改为除黑色之外的任何其他颜色? 我尝试在列表和文本中添加颜色,但似乎没有任何效果。
$phpWord->addFontStyle('myOwnStyle', array('color' => 'FF0000'));
$phpWord->addParagraphStyle('P-Style', array('spaceAfter' => 95));
$predefinedMultilevel = array('color' => 'FF0000', 'listType' => \PhpOffice\PhpWord\Style\ListItem::TYPE_BULLET_EMPTY);
$section->addText('Predefined list.'));
$section->addListItem('List Item 1'), 0, 'myOwnStyle', $predefinedMultilevel, 'P-Style');