1

我在我网站的主菜单中使用“Copperplate Gothic”字体。由于 Copperplate Gothic 的全大写性质,我在某些地方使用它来大写每个单词的首字母。如何使用 CSS 将字体“Copperplate Gothic”分配给单词的第一个字母?

4

4 回答 4

1

Copperplate Gothic font is bydefault in upparcase and not getting the lower case version of the font. "Although a true lowercase has never been designed, Copperplate Gothic is ideal for all-capital text typically set in small print" Reference: http://www.microsoft.com/typography/fonts/family.aspx?FID=40

于 2012-06-22T12:02:46.080 回答
0
text-transform:capitalize;

你可以添加css

于 2012-06-22T10:06:50.500 回答
0

您可以通过text-transform属性轻松获得所需的结果。

CSS

 p.capitalize {text-transform:capitalize;}

HTML

<p class="capitalize">This is some text.This is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is some textThis is</p>

请看演示:- http://jsfiddle.net/dkxUX/18/

于 2012-06-22T10:08:20.507 回答
0

嘿现在用这个

{
text-transform: capitalize !important;
}
于 2012-06-22T10:08:50.600 回答