中心菜单导航 [英] Center menu navigation
本文介绍了中心菜单导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经弄清楚了如何将徽标居中,但是也无法将导航也居中.希望你们能提供帮助!
I have figured out how to center the logo, but cannot get the navigation to center as well. Hopefully you guys can help!
中心徽标代码:
#header #logo{
float: none !important;
}
#header hgroup {
float: none !important;
text-align: center !important;
}
我知道这是非常基本的,但是我希望获得一些帮助.谢谢你.在我的网站此处.
I know this is pretty basic, but I would love some help. Thank you. See my website here.
推荐答案
这应该做到:
#navigation{
float:none;
text-align:center;
}
#navigation > ul{
float:none !important;
display:inline-block;
}
这篇关于中心菜单导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文