@font-face stopped working IE6
I have just been testing a site which uses @font-face in IE6. At first, it worked and the fonts were replaced. Then when I tested it again, the @font-face has completely stopped working and I can't find any reason for it.
The css I'm using is
@font-face {
font-family: 'SegoeCondensedBold';
src: url('../Fonts/segoecbd-webfont.eot');
src: url('../Fonts/segoecbd-webfont.eot?#iefix') format('embedded-opentype'),
url('../Fonts/segoecbd-webfont.woff') format('woff'),
url('../Fonts/segoecbd-webfont.ttf') format('truetype'),
url('../Fonts/segoecbd-webfont.svg#SegoeCondensedBold') format('svg');
font-weight: normal;
font-style: normal;
}
#nav
{
width: 96px;
height: 239px;
text-align: center;
margin-right: 19px;
float: left;
background: url(../Assets/nav-bg.png开发者_StackOverflow社区) no-repeat;
font-size: 16px;
font-family: SegoeCondensedBold, Arial;
}
Not sure if it's relevant but here's the html head info.
<link href="Content/Css/Master.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link href="Content/Css/IE.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
<!--[If IE 7]><link href="Content/Css/IE7.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
<!--[if IE 6]>
<style type="text/css">
img, div, input, span, a { behavior: url("iepngfix.htc") }
</style>
<![endif]-->
<!--[if IE 6]><script type="text/javascript" src="Script/iepngfix_tilebg.js"></script><![endif]-->
Note: This is only a problem in IE6. It works in all other browsers. The font-face css is in the master css file.
Enter the font name in quotes:
font-family: 'SegoeCondensedBold', Arial;
精彩评论