0

我使用谷歌应用引擎创建了一个简单的网络应用程序/表单。网站在这里; madhurdishti.appspot.com

我正在使用谷歌网络字体中的一些字体。

参考是;

<link href='http://fonts.googleapis.com/css?family=Lobster+Two:700italic' rel='stylesheet' type='text/css'>

CSS是;

h3 {font-family: 'Lobster Two', cursive;
    text-shadow: -1px 1px 0px #fff;
    font-size:1.4rem;
    line-height: 2;}

字体在 IE 和 FF 中正确显示,但在 chrome 中不正确。您可以在 FF 和 chrome 中打开相同的文件,如果您同时拥有两者并查看差异。

任何人都知道出了什么问题吗?

4

1 回答 1

3

您需要像这样更改 H3 标题:

h3 {
    font-family: 'Lobster Two', cursive;
    text-shadow: -1px 1px 0px #fff;
    font-size:1.4rem;
    line-height: 2;
    font-style: italic;

}

我刚刚添加font-style: italic;,因为您要导入字体的斜体版本

于 2012-04-11T08:34:25.703 回答