首页 > 解决方案 > 下拉导航栏中我的块元素中的空间

问题描述

在我的下拉导航中,当您将鼠标悬停在一个对象上时,我无法弄清楚如何删除大量空间。更清楚的是: 导航栏下拉菜单的图像,我正在谈论的空间被圈起来。

您可以在我的 github 网站上查看导航栏:https ://cyrusmusic101.github.io/fca-website-2021.github.io/

网站代码:https ://github.com/CyrusMusic101/fca-website-2021.github.io

标签: htmlcssnavigationdropdownnav

解决方案


.headertop ul li {
    display: inline-block;
    position: relative;
    padding: 0px 10px;
    line-height: 70px; < ----------------- here is the issue
    left: -10px;
    justify-content: center;
}

推荐阅读