【发布时间】:2011-06-19 20:17:07
【问题描述】:
如何在我的 CSS 中使用多个 @font-face 规则?
我已将其插入到我的样式表中:
body {
background: #fff url(../images/body-bg-corporate.gif) repeat-x;
padding-bottom: 10px;
font-family: 'GestaRegular', Arial, Helvetica, sans-serif;
}
@font-face {
font-family: 'GestaReFogular';
src: url('gestareg-webfont.eot');
src: local('☺'),
url('gestareg-webfont.woff') format('woff'),
url('gestareg-webfont.ttf') format('truetype'),
url('gestareg-webfont.svg#webfontg8dbVmxj') format('svg');
}
这目前仅适用于网站上的整个正文。但是,我想指定 h1 使用不同的字体。我该怎么做?
【问题讨论】:
标签: html css fonts font-face webfonts