gpt4 book ai didi

html - 移动菜单导航(边距?)

转载 作者:太空宇宙 更新时间:2023-11-04 05:00:16 25 4
gpt4 key购买 nike

我需要将此导航菜单移至内容框上方和 Logo 下方。换句话说,顺序应该是:(1) Logo ,(2) 菜单,和 (3) 内容框。

我尝试对 #navigation 的 CSS 进行各种边距调整,但无济于事。

我该怎么做?

网址:http://ec2-174-129-169-80.compute-1.amazonaws.com/

看截图:

Screenshot

最佳答案

您可以像这样将 top: -57px; 添加到您的#navigation CSS 中:

#navigation {
position: relative;
top: -57px;
clear: both;
margin-bottom: 3em;
display: none;
font: 14px/14px sans-serif;
border: 1px solid #D9D9D9;
background: white;
background: -webkit-gradient(linear, left top, left bottom, from(white), to(whiteSmoke));
background: -webkit-linear-gradient(white, whiteSmoke);
background: -moz-linear-gradient(center top, white 0%, whiteSmoke 100%);
background: -moz-gradient(center top, white 0%, whiteSmoke 100%);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03);
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03);
-moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03);
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}

关于html - 移动菜单导航(边距?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11659388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com