0

I embed Lucida Sans regular font using font face and its working fine on all browsers except ie9. I used fontface something like this:

@font-face {
 font-family: 'Lucida-Sans-regular';
 src: url('../fonts/Lsans.eot');
 src: local('Lucida sans'), url('../fonts/Lsans.woff') format('woff'), url('../fonts/Lsans.ttf') format('truetype'), url('../fonts/Lsans.svg') format('svg');
 font-weight: normal;
 font-style: normal;
} 

can anyone help to make it working on iE9?

4

2 回答 2

0

这是对我有用的最终代码:

 url('../fonts/Lsans.eot') format('embedded-opentype'), 

谢谢!

于 2013-05-16T15:22:12.433 回答
0

我认为建议执行以下操作:

@font-face {
    font-family: 'MyWebFont';
    src: url('webfont.eot'); /* IE9 Compat Modes */
    src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('webfont.woff') format('woff'), /* Modern Browsers */
    url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
    url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
于 2013-05-16T15:00:32.003 回答