【发布时间】:2011-03-05 20:17:11
【问题描述】:
我有一个使用“arial narrow”的网站。为了避免兼容性问题,我使用“Font Squirrel”字体生成器(http://www.fontsquirrel.com)制作了该字体的@font-face 版本,但是当我使用的系统没有本机“Arial Narrow”和然后通过@font-face在线加载,字体大于原生“Arial Narrow”;我对字体使用绝对大小(以 px 为单位)。
有没有办法为本地和在线字体设置不同的大小?
@font-face {
font-family: 'ArialNarrow';
src: url('/fonts/arialn-webfont.eot');
src: local('☺'), url('/fonts/arialn-webfont.woff') format('woff'), url('/fonts/arialn-webfont.ttf') format('truetype'), url('/fonts/arialn-webfont.svg#webfontNZumFher') format('svg');
font-weight: normal;
font-style: normal; }
及以下:
font-family: 'Arial Narrow', 'ArialNarrow', arial, helvetica, sans-serif;
font-size:14px;
提前谢谢,对不起我的英语不好
【问题讨论】: