我想用 CSS hover 建立一个链接。我正在使用 font-face 用 JennaSue 制作另一种字体。
CSS:
@font-face {
font-family:JennaSue1;
src: url(font/JennaSue.otf);
}
@font-face {
font-family:JennaSue3;
src: url(font/JennaSue.ttf);
}
@font-face {
font-family:JennaSue2;
src: url(font/JennaSue.eot);
}
#australia {
position:absolute;
font-size:40px;
left:0px;
top:32px;
color:#fff;
font-family: JennaSue1,JennaSue2,JennaSue3;
}
#australia a {
text-decoration:none;
color:#fff;}
#australia a:hover { color:#b30101; }
HTML:
<div id="australia"><a href="#">Australia</a></div>
该字体在 chrome 上运行良好,但当我将链接悬停时,它显示如下图片:
感谢您在此处链接的答案,您可以看到http://jsfiddle.net/6UdYd/1/;