.top-section {
height: auto;
padding-top: 100px;
text-align: center;
background: green;
}
.card-header {
position: relative;
height: 175px;
overflow: hidden;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-color: rgba(255, 255, 255, .15);
background-blend-mode: overlay;
@include border-radius(4px 4px 0 0);
margin: .5rem;
}
.card {
background: gray;
position: relative;
width: 100%;
border: none;
.card-img-top {
padding: 2rem;
padding-bottom: 0rem;
}
.card-block {
position: relative;
padding: 2rem;
}
.card-text {
text-align: center;
margin-bottom: 0;
}
.card-title {
text-align: center !important;
line-height: 1rem
}
}
.col-md-4 .col-lg-4 {
margin-bottom: 10rem !important;
}
.other {
position:relative;
top:840px;
background:blue;
}
.other_2{
position:relative;
top:840px;
background:pink;
}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<html>
<section id="intro" class="top-section">
<div class="container-fluid" style="height:250px">
<div class="row">
<div class="col-lg-12">
<h3>Lorepsum Text Lorepsum Text</h3>
</div>
</div>
<div class="container-full" style="top:15%; position:relative !important; background:transparent">
<div class="row">
<div class="col-md-4 col-lg-4">
<div class="card">
<div class="card-img-top">
<img class='img-responsive' src="https://source.unsplash.com/category/nature/800x400" />
</div>
<div class="card-block">
<h4 class="card-title">TITLE</h4>
<hr>
<p class="card-text"> Magni inventore repellat dignissimos eveniet dolore ex sit illo adipisci accusamus quos</p>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="card">
<div class="card-img-top">
<img class='img-responsive' src="https://source.unsplash.com/category/nature/800x400" />
</div>
<div class="card-block">
<h4 class="card-title">TITLE</h4>
<hr>
<p class="card-text"> Magni inventore repellat dignissimos eveniet dolore ex sit illo adipisci accusamus quos</p>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="card">
<div class="card-img-top">
<img class='img-responsive' src="https://source.unsplash.com/category/nature/800x400" />
</div>
<div class="card-block">
<h4 class="card-title">TITLE</h4>
<hr>
<p class="card-text"> Magni inventore repellat dignissimos eveniet dolore ex sit illo adipisci accusamus quos</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="background:black; height:100% !important">blabla</div>
</section>
<section class="other">
<div class="container-fluid">
<div class="row">
This is another section and I should be always adjust and be below the videos on any screen resolution.
</div>
</div>
</section>
<section class="other_2">
<div class="container-fluid">
<div class="row">
This is another section and I should be always below blue seciton
</div>
</div>
</section>
我怎样才能实现类似附有引导图像的东西动态变化的顶部?
我想要在第1和第2部分之间浮动的卡片包含视频。我的问题是,我需要第2要大一些时,卡将叠加,以便有卡片的底部,并开始第2节
分享您的代码 – tech2017
,你能告诉我们你的实际输出?我想看看它与你连接的图片有什么不同 – niceman
刚刚添加了一个片段,注意如何有一个蓝色和粉红色的部分,而不是他们上面的视频卡部分。 –