簡體   English   中英

引導表中的所有單元格都加粗

[英]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;
}

在此處輸入圖片說明

頭:

SS111

整個CSS:

sss

找到解決方案。 在我的 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&amp;subset=cyrillic" rel="stylesheet">

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM