阅读背景:

调整窗口大小使标签转到下一行

来源:互联网 

Here is my css and html

这是我的CSS和HTML

#header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background-image: url('/public/images/header.png');
    background-repeat: repeat-x;
}

#nav {
    background: transparent;
    height: 2.5em;
    left: -25px;
    list-style: none;
    margin: 1em 0 1em;
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
    padding: 60px 0 30px 0;
}

#nav a {
    color: white;
    display: block;
    float: left;
    height: 2.5em;
    padding-left: 30px;
    text-decoration: none;
    padding-right: 30px;
    text-shadow: 0.1em 0.1em #333;
}

#nav a:hover {
    text-shadow: 0.1em 0.1em white;
    background-color: white;
    color: darkred;
    padding-bottom: 5px;
    text-shadow: 0.1em 0.1em lightgray;
}

#nav a:hover.active, #nav a.active {
    background-color: white;
    background-position: 0 -60px;
    color: darkred;
    text-shadow: 0.1em 0.1em lightgray;
    padding-bottom: 5px;
}

#nav li {
    float: left;
    margin: 0 8px 0 0;
 /* Spacing between tabs */;
}

#nav span {
    cursor: pointer;
    display: block;
    float: left;
    line-height: 1.5em;
    padding: .5em 5px 0 0;
}


<div id="header">
    <div id="navigation">
        <ol id="nav">
            <li><a id="overview" href="/go.html?url=/overview"><span>Overview</span></a></li>
            <li><a id="analysis" href="/go.html?url=/overview" class="active"><span>Analysis</span></a></li>
            <li><a id="dashboard" href="/go.html?url=/dashboard"><span>My Dashboard</span></a></li>
            <li><a id="preferences" href="/go.html?url=/overview"><span>Preferences</span></a></li>
            <li><a id="contact" href="/go.html?url=/overview"><span>Contact</span></a></li>
            <li><a id="logout" href="/go.html?url=/overview"><span>Sign In</span></a></li>
        </ol>
    </div>
</div>
#heade



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: