两段代码导致了相同的结果
<span style='color: rgb(255, 0, 0); ' > [...]</span>
<div class='tree_vertical_father'> [...] </div>
*where*
.tree_vertical_father {
background-color: rgba(0, 0, 255, 0.07);
}
不应用背景色,并且字体 colored颜色 为黑色.
PDF是用Grover gem生成的,它使用pupetter和 chromium 来生成一个视图,然后将其转换为PDF.
当在浏览器中生成视图时,所有 colored颜色 都会按预期呈现.
需要什么才能让Chromium接受 colored颜色 样式?