当您将鼠标悬停在其上时,本网站上的链接似乎重叠。 div的已经给予了正确的高度,但一旦你将鼠标悬停在链接似乎是捡的165像素链接互相重叠
http://www.dawaf.co.uk/animate/
有没有一种方法来设置高度为93px停止重叠的高度?
#about {
position: absolute;
left: 0;
top: 0;
height: 89px;
width: 336px;
}
span.title-link {
font-size: 6.8em;
font-weight: bold;
font-family: 'Titillium Web', Arial, sans-serif;
text-decoration: none;
line-height: 93px;
cursor: pointer;
opacity: 0;
}
span.title-link a {
color: #FFF;
text-decoration: none;
}
span.title-link a:hover {
color: #E91F4C;
}
#about-red {
left: -104px;
width: 545px;
}
#logo-red {
height: 93px;
width: 209px;
position: absolute;
left: 336px;
}
/*Echo
------------------------------------------------------------ */
#gallery {
position: absolute;
left: 0;
top: 0;
height: 92px;
width: 434px;
}
#gallery-echo {
left: -202px;
width: 714px;
}
#logo-echo {
height: 93px;
width: 280px;
position: absolute;
left: 434px;
}
/*Events
------------------------------------------------------------ */
#contact-events {
left: -216px;
width: 862px;
}
#contact {
position: absolute;
left: 0;
top: 0;
height: 92px;
width: 448px;
}
#logo-events {
height: 93px;
width: 414px;
position: absolute;
left: 448px;
}
也许你修正了它,但在Google Chrome浏览器中看起来没问题。但是,一点。在菜单中,如果尽量保留适用于a元素的尽可能多的样式,并且很少应用于ul或li,您将获得更多可预测的CSS行为。 – magi182 2013-03-27 18:30:41
如果您在Chrome中使用检查元素,则可以看到a元素重叠。因此,关于“关于”的链接将部分路径重叠到“图库”链接上。 – user1652997 2013-03-27 18:33:17
问题出在span.title-link – user1652997 2013-03-27 18:34:44