我准备了我的导航栏的小提琴:
目前,悬停底部边框比活动状态窄,我看不到如何修复它,想知道这里的大师是否可以提供一些帮助?
HTML
<!-- Forgive the messy markup - wordpress output -->
<div class="wpbook_header">
<div id="underlinemenu" class="clearfix">
<ul>
<li class="page_item page-item-67 current_page_item"><a id="load-home-page" href="#">Home</a></li>
<li class="page_item page-item-69"><a id="load-blog-list" href="#">The Blogs</a></li>
<li class="page_item page-item-60"><a id="load-authors-page" href="#">Meet the Bloggers</a></li>
<li class="page_item page-item-2"><a id="load-gallery" href="#">Gallery</a></li>
<li class="page_item page-item-271"><a id="load-faqs" href="#">FAQs</a></li>
<li class="page_item page-item-168"><a id="load-compform" href="#">Competition</a></li>
</ul>
</div>
</div>
CSS
#underlinemenu {
font-family: arial, helvetica;
padding: 0;
margin: 0;
padding-bottom: 30px;
font-size: 14px;
}
#underlinemenu ul {
float: left;
font-weight: bold;
width: 770px;
height: 57px;
background-color: #242129;
margin: -1px 0 -30px 0;
}
#underlinemenu ul li {
display: inline;
float: left;
color: white;
padding: 21px 30px 0px 8px;
}
.current_page_item {
color: white;
padding: 21px 10px 15px 5px !important;
margin: 0 30px 0 3px;
border-bottom: 5px solid white;
}
#underlinemenu ul li a {
color: white;
font-weight: bold;
text-decoration: none;
padding: 5px;
}
#underlinemenu ul li a:hover {
color: #408261;
padding-bottom: 15px;
border-bottom: 5px solid #408261;
}
</p>
另外,如果有人可以就如何将其转换为熔岩灯样式菜单(底部边框动画在悬停元素下方)提供建议,那将是惊人的,但如果没有,我可以将其保存以备后问.