to tags are not being displayed in Chrome?

问题描述 投票:0回答:2

我在谷歌浏览器上遇到了一个非常奇怪的错误,当谷歌使用'Roboto'字体时,h1到h6标签没有在屏幕上呈现。

它适用于Firefox,但不适用于Chrome,我迷路了,不知道发生了什么 - 有没有人遇到过这个错误?这是我的h2,h3代码的代码:

h2, h3 {
    margin: 0;
    margin-bottom: 5px;
}

comparison http://domcorso.me/0/2/h1h6.png

css google-chrome
2个回答
0
投票

更新:h1-h6标签自动包含'font-weight:bold' - 将'font-weight'属性设置为'normal'后,它可以正常工作。有点奇怪的,它可能与我使用Roboto Light而不是像Alvaro在他的JSfiddle中使用的Roboto常规这一事实有关。


-2
投票

试试这个:你可以输入你想要的任何文字font face =“calibri”。

<font face="calibri">
<h1>Whater the text you want</h1>
© www.soinside.com 2019 - 2024. All rights reserved.