1

所以我想添加一个悬停框,就像我目前在活动链接“主页”上设置的那个到其他链接但是当我尝试添加它时,导航菜单会在我悬停时移动,所以我希望得到一些帮助。

http://trulyamped.com/test/index.html
http://trulyamped.com/test/styles.css

只需查看源代码,让我知道我需要修复什么。

感谢大家。

另外,当您将鼠标悬停在菜单项上时,我还想知道添加轻微的延迟/淡入淡出。例如:就像我将鼠标悬停在“联系人”上,它变成蓝色,但是当我悬停时,它需要半秒钟或其他时间才能消失。

再次感谢

4

1 回答 1

0

变化:

LN9:移除

LN12:填充:0px 24px;

LN25-28:更新悬停

LN36-36:移除

LN77-78:移除

body {
    margin: 0px;
    padding: 0px;   
}
header {
    height: 95px;
    background-color: #fff;
}

a {
    text-decoration: none;
    padding: 0px 24px;
}
a:link    {
    color:inherit;
    text-decoration: none;

    }
a:visited  {
    color:inherit;
    text-decoration: none;
    }
a:hover    {
    text-decoration: none;
    background-color: #FF6850;
    padding-top: 38px;
    padding-bottom: 34px;
    color: white;
}
a:active   {
    color:inherit;
    text-decoration: none;

    }
a.active{
    background-color: #FF6850;
    padding-top: 38px;
    padding-bottom: 34px;
    color: white;
}

#longbar {
    min-width: 1000px;
    width: auto;
    clear: both;
    height: 8px;
    background-color: #fff;
    background-image: url(images/header/topbar.jpg);
}
#longbarmini {
    min-width: 1000px;
    width: 100%;
    clear: both;
    height: 3px;
    background-color: #FF6850;
}
#wrapper {
    width: 1000px;
    margin-right: auto;
    margin-left: auto;
}
#wrapper header h1 {
    font-family: 'Titillium Web', sans-serif;
    margin: 0px;
    padding-top: 16px;
    padding-left: 20px;
    color: #0078D4;
    float: left;
    font-size: 40px;
}
#wrapper header h1 span {
    color: #316ca7;
    font-weight: lighter;
}
#wrapper header ul {
    list-style-type: none;
    float: right;
    padding-top: 20px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: lighter;   
    font-size: 18px;
}
#wrapper header ul li {
    display: inline;
    color:inherit;
    text-decoration: none;

}

section {
    width: 100%;
    min-width: 1000px;
    height: 400px;
    background-color: #AE4639;
}
#content {
    height: 100px;
    width: 800px;
    margin-right: auto;
    margin-left: auto;
    background-color: #0FF;
}
footer  {
    min-width: 1000px;
    clear: both;
    height: 45px;
    background-color: pink;
}
于 2013-06-09T08:10:45.093 回答