我试图复制这个website菜单的字体但是当我把这个样式放在我自己的WordPress CSS主题中时,我仍然得到它的粗体版本。有没有特别的技巧,所以我可以得到字体的轻版本? 得到的字体与他们所拥有的相同。
答案 0 :(得分:5)
如果您确实在寻找蒙特塞拉特字体并且想要简易版本,可以使用此导入参考:
@import url(http://allfont.net/allfont.css?fonts=montserrat-light);
你可以在css中使用它:
font-family: 'Montserrat Light', arial;
有关此字体的更多信息,请访问:http://allfont.net/download/montserrat-light/
答案 1 :(得分:0)
它看起来像Google字体 Montserrat :
http://www.google.com/fonts/specimen/Montserrat
看来这种字体只有普通(400)和粗体(700):
http://www.google.com/fonts#UsePlace:use/Collection:Montserrat
对于字体的普通版本,请尝试添加:
font-weight: 400;
到你的CSS。另外,请确保首先导入字体正确引用字体:
@import url(http://fonts.googleapis.com/css?family=Montserrat);
然后将样式添加到正确的元素:
font-family: 'Montserrat', sans-serif;