1

使用范围报告版本 4,

报告中有规定添加自定义css,

寻找正确的语法,通过尝试这两个它不适用:

 htmlReport.Config.CSS = "<styles>  <![CDATA[ .black-text { color: #fff !important; } ]]> </ styles>";

 htmlReport.Config.CSS = "<styles>  .black-text { color: #fff !important; }  </ styles>";
4

1 回答 1

2

解决方案是,

htmlReport.Config.CSS = ".black-text { color: #fff !important; }";
于 2019-01-21T04:56:06.020 回答