我有一個網站使用「arial narrow」。爲避免兼容性問題,我使用「Font Squirrel」字體生成器(http://www.fontsquirrel.com)製作了@ font-face版本的字體,但是當我在沒有原生「Arial Narrow」的系統上時,通過@ font-face在線加載,字體大於原生的「Arial Narrow」;我在px中使用字體的絕對大小。CSS:如何爲每種字體設置不同的尺寸
有沒有辦法爲原生和在線字體設置不同的尺寸?
@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;
謝謝,對不起我的英文不好