我在网站上使用的所有字体都是方形的,就像网站上的文字一样。
如果您访问http://www.momondo.dk/并观看该文字,它有点“锐利或流畅”,我将如何在自己的网站上获得该文字?
其归因于他们使用的字体:
这将是CSS:
h1 {
font-family: 'Open Sans', sans-serif;
}
另外,添加以下内容:
.title h1 {
color: #c6aefb;
font-size: 24px;
font-weight: 300;
margin: 0;
padding: 20px 30px 5px;
}
编辑:
添加此代码:
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
现在只添加:
font-family: 'Open Sans', sans-serif;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句