【发布时间】:2020-04-25 09:17:03
【问题描述】:
如何在Azure Devops Wiki 的表格中创建彩色行?我想创建类似下面的东西
.table-striped th {
height: 45px;
background-color: #bfff00 !important;
color: #191919;
}
.table-striped tr:nth-child(even) td {
background-color: #4287f5;
}
<div>
<table class="table-striped">
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</table>
</div>
在 Azure Wiki 中创建表的主要方式是 Markdown 表,据我发现是 Markdown does not support color。或许有什么诀窍?
从Azure Wiki Syntax Help我发现HTML标签和YAML表也受支持,但我能够实现的一切都是通过markdown中的span标签着色:
<span style="background-color: red">57065</span>|<span style="background-color: red">4560</span>|<span style="background-color: red">I AM TABLE ROW</span>
这看起来很难看。
有没有办法实现完整的着色?
【问题讨论】:
标签: azure html-table azure-devops yaml markdown