我正在使用我下載的網頁模板。所以我定義了一個表,如: - 表類=「table表條紋表鑲上自舉數據表數據表」>更改表格單元格字體爲粗體
<thead>
<tr>
<th></th> <th></th>
</tr></thead>
<tbody>
<tr>
<td class="center" >
@Html.LabelFor(model => model.AccountDefinition.ORG_NAME)
</td>
<td>@Html.DisplayFor(model => model.AccountDefinition.ORG_NAME)</td>
</tr>
<tr>
<td class="center">
@Html.LabelFor(model => model.AccountDefinition.LOGIN_URI)
</td>
我搜索模板.center
類,但我無法找到任何其他參考到.center除了insidethis
div.center,p.center,img.center{
margin-left: auto !important;
margin-right: auto !important;
float:none !important;
display: block;
text-align:center;
}
所以我添加
font-weight:bold
以上的CSS所以看起來: -
div.center,p.center,img.center{
margin-left: auto !important;
margin-right: auto !important;
float:none !important;
display: block;
text-align:center;
font-weight:bold;
}
但仍然表格單元格字體不會大膽?有關如何解決它的任何想法? BR
檢查您的字體家族或添加正文{font-family:arial;} –