[英]All cells bold in bootstrap table
Bootstrap 4 表給我所有帶有粗體文本的單元格,我需要 td 中的普通文本。 字體粗細沒有幫助/
<div class="row col-md-10 px-4 py-3 ">
<table id="ServiceTable" class="table table-hover table-striped">
<tbody>
<tr>
<th colspan="3">Title</th>
<td class="text-right">
<button type="button" class="btn btn-primary px-4 btn-sm">Подробнее</button>
</td>
</tr>
<tr>
<td colspan="2">date_isodate_set</td>
<td colspan="2">Thornton</td>
</tr>
<tr>
<td colspan="2">Hii</td>
<td colspan="2">Larry the Bird</td>
</tr>
</tbody>
</table>
</div>
CSS:
#ServiceTable td {
font-weight: 400;
}
頭:
整個CSS:
找到解決方案。 在我的 head 標簽中,我使用了 google 字體的鏈接。 並且添加了 font-weight 參數 = 600 並且只有這個權重:
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:600" rel="stylesheet">
因此,即使您嘗試將 font-weight 更改為此上傳的字體,它也不起作用。 它只需要定制:
上傳鏈接應該是這樣的:
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700&subset=cyrillic" rel="stylesheet">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.