如何去除 slider 和导航之间的空白?找不到要删除空白的 css 标记。谢谢
这是 slider 的 CSS:
#slider-banner {
overflow: hidden;
background: #111;
导航
.main-navigation {
clear: both;
display: block;
font-weight: 300;
font-family: 'Lato', sans-serif;
position: relative;
border-bottom: 3px solid #04A3ED;
background: #00ABFF;
这是 site
最佳答案
遇到了同样的问题。我使用 jQuery 中的 .pull-left
和 .pull-right
来拆分我的导航栏。
看起来它们在 CSS 中默认都有 margin-bottom: 10px;
。因此,在您自己的 css 中将其更改为 0px,这样它将覆盖 jQuery。
关于css - 如何删除 slider 和导航之间的空白区域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26254404/