我在网站的主菜单中使用“铜版哥特式”字体。由于铜板哥特式的全部大写特性,我在某些地方使用它来大写每个单词的第一个字母。如何使用CSS将字体“铜版哥特式”分配给单词的第一个字母?
发布于 2012-06-22 20:02:46
铜版哥特式字体是默认的大写字体,而不是小写字体。“虽然从来没有设计过真正的小写,但铜版哥特式字体非常适合通常用小写字体设置的全大写文本”参考:http://www.microsoft.com/typography/fonts/family.aspx?FID=40
发布于 2012-06-22 18:06:51
text-transform:capitalize;您可以添加css
发布于 2012-06-22 18:08:21
您可以通过text-transforn属性轻松获得所需的结果。
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>https://stackoverflow.com/questions/11154135
复制相似问题