【发布时间】:2012-08-20 20:09:10
【问题描述】:
我正在使用 css3 中的 @font-face 在网站上放置一些字体,而不使用图像作为页面标题。
但是,我发现在使用字体时会在标题下方创建一个间隙,有点像段落或换行符。间隙大小是相对于字体大小的,随着大小的增加而增加。
我使用的字体类型是相对较小的 Asenine,所以我将大小设置为 60px
我不确定为什么会发生这种情况并且似乎找不到解决方法。
这是我的 CSS
}
@font-face {
font-family:'asenine';
src: url('fonts/asenine.eot');
src: url('fonts/asenine.eot?#iefix') format('embedded-opentype'),
url('fonts/asenine.woff') format('woff'),
url('fonts/asenine.ttf') format('truetype');
}
h1{
font-size:60px;
font-family:asenine, Arial, Helvetica, sans-serif;
text-shadow:7px 3px 4px #0c0c0c;
font-weight:100;
}
【问题讨论】: