2014-04-19 49 views
0

我从Photoshop草图制作一个网站。 而且我有一个文字智慧如何设置字体样式?

font-family Segoe Ui and font-style:Light。 在Photoshop它看起来像这样:enter image description here

因此,如何在CSS中设置这p元素?

​​
+0

'font-weight:lighter' - 但前提是字体支持光。这是一个谷歌搜索去 – Fuzzyma

+0

Segoe UI是微软版权所有的字体,所以除非你有这样做的许可证,你不能使用它作为Web字体。 – adaam

+1

你可以使用font-weight:打火机 – prava

回答

3

使用font-weight这需要像值:

p { 
    font-weight: 100; /* 100, 200, 300, ... 900, normal, bold, bolder, lighter */ 
} 

参见W3Schools的文档。

+6

请不要致电W3Schools“W3C”。它绝不隶属于W3C,一般不建议作为源代码,尽管它不再那么可怕。见http://www.w3fools.com。 – nyuszika7h

相关问题