Chrome中没有显示<h1>到</h1> <h6>标记?

时间:2015-10-04 11:44:36

标签: css google-chrome

在使用&#39; Roboto&#39;时,我在Google Chrome上遇到了一个非常奇怪的错误。由Google提供的字体,h1到h6标签不会在屏幕上呈现。

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

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

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

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:-2)

试试这个:你可以输入你想要的任何文本字体face =&#34; calibri&#34;。

&#13;
&#13;
<font face="calibri">
<h1>Whater the text you want</h1>
&#13;
&#13;
&#13;