像Engadget一样的菜单-字体不匹配



我正在尝试创建一个像Engadget一样的菜单栏。我似乎正确地实现了它,但我仍然没有得到确切的字体样式。请帮帮我。谢谢。这是我的小提琴。

我的HTML,

<div class="nav">
<ul>
<li><a href="#">Reviews</li>
</ul>
</div>

我的CSS,

 .nav{
        background:#303030;
        line-height:1;
        overflow:hidden;
        position:relative; 
        -moz-border-radius: 5px;
        border-radius: 5px;
}
.nav a{
        color:#fff;
        text-decoration:none;        
        font-family: Oswald,Arial Narrow,Arial,Helvetica,sans-serif !important;
        text-transform:uppercase !important;
        font-size:14px !important;
        margin-right:10px;
        padding:10px;
        display: block;
        -moz-border-radius: 5px;
        border-radius: 5px;
        font-weight:lighter;
}
.nav li{
        float:left;
        overflow:hidden
}
.nav ul{
        list-style:none;
        margin:0;
        overflow:hidden;
        padding:0;
        width:100%
}
.nav ul a:hover
{
        color:#FFF;
        background-color:#454545 !important;                     
}
.nav ul,nav ol
{
        list-style:none;
        list-style-image:none
}

必须导入resp。链接字体!在Engadget的css样式中可以看到css:

@font-face {
    font-family: "Oswald";
    src: url("http ...

我更新它作为示例:http://jsfiddle.net/5UMfe/2/

Engadget使用一种名为Oswald的开放网页字体。你没有把它包含在你的源代码中,但是它可以在Google Web Fonts上找到。

@import url(http://fonts.googleapis.com/css?family=Oswald:400,300);

最新更新