字体粗细不适用于Chrome中的标签

zii*_*web 4 css fonts google-chrome

我的代码中有这一行:

<label style="font-weight: bold" for="sedii18n_codice_paese_indirizzo">Codice paese indirizzo</label>
Run Code Online (Sandbox Code Playgroud)

但标签显示正常.

如果我转到Chrome Inspector,我可以看到:

font-weight: normal !important;
Run Code Online (Sandbox Code Playgroud)

如果我font-weight在检查器中更改,则会正常修改字体的重量.

Jez*_*Jez 11

看起来其他东西覆盖了你的大胆风格,因此!重要的标签.Chrome Inspector应该告诉您font-weight: normal !important;应用的位置.您可以尝试font-weight: bold !important;在style属性中放置以覆盖此覆盖.:-)