狮身人面像,重组文本:table 的颜色 cell/row
sphinx, restructuredtext: color cell/row of a table
有没有办法在 sphinx 中为 table 中的特定行着色?
我尝试使用 .. role::,它与 sphinx, restructuredtext: set color for a single word 中讨论的 CSS 文件相关。但是 :role: 似乎在 table.
中不起作用
没有,但是有使用 CSS 选择器 :nth-child
and 。那么您的自定义 CSS 将类似于:
table.myclass tr:nth-child(3) {color: red;}
有没有办法在 sphinx 中为 table 中的特定行着色?
我尝试使用 .. role::,它与 sphinx, restructuredtext: set color for a single word 中讨论的 CSS 文件相关。但是 :role: 似乎在 table.
中不起作用没有,但是有使用 CSS 选择器 :nth-child
and
table.myclass tr:nth-child(3) {color: red;}