【问题标题】:How to change table's border color in AsciiDoctor?如何在 AsciiDoctor 中更改表格的边框颜色?
【发布时间】:2018-04-01 11:33:08
【问题描述】:

在不断地谷歌搜索之后,我找不到改变表格边框颜色的方法。有没有可能?

【问题讨论】:

    标签: asciidoc asciidoctor asciidoctor-pdf


    【解决方案1】:

    我认为这取决于您要导出到的工件。

    如果要导出为 html,则必须更改应用于表格的 css 样式。通过更改 asciidoctor.css 或通过 :stylesheet: 属性应用不同的样式表(请记住用 !important 覆盖,否则将不会应用)。您可以将表格的thtd 标签修改为border-color: 1px solid red,例如。

    如果您要导出为 pdf,则必须使用 ...-theme.yml 文件,您必须使用 :pdf-style: 属性指定该文件。 table_border_color 是您要查找的键(另请参阅asciidoctor theming guide)。

    【讨论】:

      猜你喜欢
      • 2020-06-14
      • 2016-02-11
      • 2018-01-26
      • 1970-01-01
      • 2017-01-03
      • 1970-01-01
      • 2015-02-06
      • 1970-01-01
      • 2021-11-30
      相关资源
      最近更新 更多