【问题标题】:Disable zebra striping in Github table markdown在 Github table markdown 中禁用斑马条纹
【发布时间】:2018-05-12 01:45:02
【问题描述】:

默认情况下,Github Markdown 中的表格以突出显示的交替行(斑马条纹)呈现。禁用此功能的降价是什么? Github markdown documentation for tables 没有描述这是如何完成的。

例如,这个表有行条带化:

对应的markdown是:

Key|Value
---|-----
A|B
C|D
E|F
G|H

这个问题与this question 不同,后者谈到在降价中应用颜色。这个问题特别与表格中交替突出显示的行有关。

【问题讨论】:

  • 我不相信 GitHub 的降价是可能的。
  • 查看css,只有一条规则设置.markdown-body table tr:nth-child(2n){ background-color:#f6f8fa },没有其他可能覆盖它的规则。所以我会说这是不行的。

标签: markdown github-flavored-markdown


【解决方案1】:

使用 CSS 是不可能的,但有一种解决方法。只需在行之间添加一个空行。

<tr></tr>

【讨论】:

  • 太老套了,但我喜欢它。
  • 一万亿智商..
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-09-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-03
  • 2014-07-02
  • 1970-01-01
相关资源
最近更新 更多