我怎样才能@font-face在CSS中使用超过规则?
我已将其插入到样式表中:
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');
}
Run Code Online (Sandbox Code Playgroud)
这目前仅适用于网站上的整个文本.但是,我想指定h1使用不同的字体.我怎样才能做到这一点?