[英]How can I change nav bar position?
I've been trying to fix a navbar position but it is not working correctly.我一直在尝试修复导航栏 position 但它无法正常工作。 I added margin-top to the nav element but this will create big white space when the user scrolling down.
我在 nav 元素中添加了 margin-top ,但是当用户向下滚动时这会产生很大的空白。 I just want to move the navbar position to the bottom of the header and above content.
我只想将导航栏 position 移动到 header 及以上内容的底部。 How can I make this work?
我怎样才能使这项工作? I draw the arrow where I want to move the navbar position.
我在要移动导航栏 position 的位置绘制箭头。
https://songs-of-hope.tumblr.com/ https://songs-of-hope.tumblr.com/
You can just remove the below style from styles.css
line number 500:您可以从
styles.css
行号 500 中删除以下样式:
#header.bgimage.center .primary {
padding-bottom: 30px;
}
Or you can set padding-bottom: 0px;
或者你可以设置
padding-bottom: 0px;
. . This will solve you problem.
这将解决你的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.