开发者

how to set font family?

my html code-

 <div class="logo"><h1><a href="index.html" class="lg">Shizin</a></h1></div>

my css code-

.lg {
font-family:Monotype Corsiv开发者_如何学运维a, Times, serif;
}

but it is not working.how can i set font style?


p {
font-family:"Times New Roman",Georgia,Serif;
}

This works fine, so do you maybe just have to add the " to Monotype Corsiva, or have to start writing serif with a big S?


Update: As you can read from the comment above: Using non-standard fonts on a web site is not trivial.


are you sure that your system have this font if not then see http://forums.asp.net/p/1467009/3392471.aspx


Font's with spaces in them need to be quoted.

font-family: "Times New Roman", Arial, "Trebuchet MS";

So :

.lg {
   font-family: "Monotype Corsiva", Times, serif;
}  

Should work fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜