【发布时间】:2018-01-27 06:44:33
【问题描述】:
我有一张表,我想覆盖它的行高,因为行太高了。我尝试在我自己的 css 上在 tr 上设置一个类并设置高度值。
CSS:不,这就是这个模板的所有 CSS。和html
tr.unitGridRow {
height: 20px;
}
<tbody>
{{#each unitInService}}
<tr class="unitGridRow">
<td>
<div class="chip" style="background: {{unitColorCode}}; color: {{unitTextColorCode}};">
{{callSign}}
</div>
</td>
<td>{{currentStatus}}</td>
<td>{{timeInStatus}}</td>
</tr>
{{/each}}
</tbody>
但行高永远不会改变。我目前正在使用 Meteor 1.5.0 和 Materialize 0.98.2。
非常感谢任何帮助,
【问题讨论】:
-
我们需要查看更多代码(HTML 可能还有 CSS)来确定您的表格行高的原因。
-
@JonUleis 我已经更新了问题中的代码。希望对您有所帮助。
标签: html css html-table row materialize