CSS 问题 - 导航菜单
查看导航菜单所在的蓝色背景。在 Firefox 上,新闻被推到左侧。我想让每个项目都适合在水平线上。所以我搜索并从中删除填充: .navigation ul li { 左边框:1px实心#b3b3b3; 浮动:向左; 保证金:0; 位置:相对; /*--声明子导航的X、Y轴基准--*/ }
但导航项之间的填充仍然在中间留出空间。要么我忽略了某些东西,要么每次刷新时都顽固地不改变?
将感谢您的帮助或见解。
See the blue background where the navigation menu is. On firefox, the news is pushed down to left side. I wanted to make every item to fit in on horizontal line. So I searched and remove padding from this: .navigation ul li {
border-left:1px solid #b3b3b3;
float: left;
margin: 0;
position: relative; /*--Declare X and Y axis base for sub navigation--*/
}
but the padding between the navigation item is still making space between in. Either I overlook something or it is stubborn not to change everytime I refresh?
Will appreciate the help or insight.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Firebug 中检查了它,
.navigation ul li
仍然具有padding: 0 20px;
样式,在all2.css
中设置为它code> 文件第 804 行。padding: 0 15px;
似乎使一切都合适,只需要稍微调整第一个li
padding-left 即可。I checked it out in Firebug and
.navigation ul li
is still having a style ofpadding: 0 20px;
being set to it in theall2.css
file at line 804.A
padding: 0 15px;
seems to make everything fit, just need to adjust the firstli
padding-left a little.