Html 为什么在第二部分(“创新你”)中有多余的空格?
我对css和html非常陌生,意识到这可能是一个愚蠢的错误 我在任何地方都看不到上边距(使用不同的引导源并从中构建),但无论我如何剖析代码,我仍然找不到问题所在Html 为什么在第二部分(“创新你”)中有多余的空格?,html,css,Html,Css,我对css和html非常陌生,意识到这可能是一个愚蠢的错误 我在任何地方都看不到上边距(使用不同的引导源并从中构建),但无论我如何剖析代码,我仍然找不到问题所在 <div id="fh5co-products" data-section="products"> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2 fh5co-sectio
<div id="fh5co-products" data-section="products">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 fh5co-section-heading text-center">
<h2 class="fh5co-lead animate-single product-animate-1">innovating you</h2>
<p class="fh5co-sub animate-single product-animate-2">Your buyers are constantly evolving, and it can be hard to keep up. That's where we come in. </br>By uncovering the latest trends and best-in-class technologies, we work to ensure that you provide a selling experience that exceeds your buyers' expectations.</p>
创新你
您的买家在不断发展,很难跟上。这就是我们要做的通过揭示最新趋势和一流技术,我们致力于确保您提供超出买家预期的销售体验
请在代码中添加此css
.jumbotron {
margin-bottom: 0;
}
因为具有子div
class=“jumbotron”
的第一个元素具有值为30px的属性margin bottom
在CSS中
.jumbotron {
margin-bottom: 0; // or use margin-bottom: 0 !important if this not work
}
在jumbotron类的底部有一个30px的余量。由于您似乎要覆盖jumbotron类设置,请添加margin-bottom:0代码>到您的设置,它应该删除该设置。