css - 如何删除 slider 和导航之间的空白区域?

标签 css layout

如何去除 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/

相关文章:

css - Flex 显示器 - Android 上没有换行?

java - Android studio - 不同的设备使用相同的布局,但一切仅在其中一种设备上看起来不错

java - 如何将 View 添加到livedata观察器内的cardview

css - 2 列布局不起作用

html - 占用布局空间

html - 响应式——所有元素在移动设备上都太小了

html - 什么是 magento 虚拟主机?如何在 magento 中上传我的网页?

javascript - 如果 IE10 或 IE11 显示不同的图像

css - 从 xlst 转换访问外部 css 样式表

python - matplotlib 轴 ('tight' )不起作用?