css 如何将下拉按钮与导航栏的其余部分对齐[已关闭]

4nkexdtk  于 2023-02-01  发布在  其他
关注(0)|答案(1)|浏览(78)

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
十小时前关门了。
Improve this question
我使用了来自We3Schools的代码大纲,我的问题是按钮与导航栏不平。

我无法让代码对齐它允许我发布的地方,所以这里是github链接(它是一个只有导航栏的html文件和一个只有导航栏部分的css文件)。
链接:https://github.com/Terrancesky/website/tree/main

xytpbqjk

xytpbqjk1#

似乎一切都很好,你也可以通过添加这个css检查

@media screen and (min-width: 600px){
    .topnav {
        display: flex;
        align-items: center;
    }
}

相关问题