【发布时间】:2014-03-25 03:31:52
【问题描述】:
这是我当前的代码:http://jsfiddle.net/spadez/gMm2P/5/
谁能告诉我如何让文本在导航栏中间垂直对齐,然后在悬停或激活时菜单项底部的导航栏底部有一个 3px 的蓝色栏。
例如:http://dribbble.com/shots/1412015-Restaurant-admin/attachments/206070
我的代码(没有中心对齐并且悬停时的蓝色条太高):
#header {background-color: white; padding: 0 100 0 100; height: 70px;}
#nav {padding-left: 80px;}
#nav a:hover {border-bottom: 3px solid blue;}
#nav a:active {border-bottom: 3px solid blue;}
【问题讨论】: