0
如何更改样式表中的页眉/页脚文字颜色?rst2pdf页眉/页脚文字颜色
我想,徒劳的:
footer: {
parent: normal,
alignment: TA_CENTER,
textColor: red
},
如何更改样式表中的页眉/页脚文字颜色?rst2pdf页眉/页脚文字颜色
我想,徒劳的:
footer: {
parent: normal,
alignment: TA_CENTER,
textColor: red
},
页眉或页脚是不是真的风格,那是因为他们是任意的修改案文。
所以,如果你想改变颜色,最简单的方法可能是使用一个类或一个角色。
所以,你可以这样做:
.. footer::
class:: foo
This is the footer, with style foo
或者
.. footer::
:foo:`This is the footer with style foo`
如果你选择后者,你将不得不增加一个
.. role:: foo
地方。
这不是一个reStructuredText问题,而是一个CSS问题。添加这个标签可能会很快得到答案。 – Chris
不,这不是CSS问题,因为他在询问rst2pdf –