【发布时间】:2021-05-12 08:01:45
【问题描述】:
我遇到了 HTML 问题...我需要将两行文本与图像重叠。我正在使用 bootstrap4,并且正在使用模板,在这段代码中,模板运行良好:
<section class="position-relative dark-overlay py-3 py-lg-7 overflow-hidden" data-parallax="scroll" data-image-src="img/photo/erii-gutierrez-487083-unsplash.jpg" data-speed="0.3" data-position-x="right">
<div class="container overlay-content hero hero-page">
<ul class="breadcrumb justify-content-center no-border mb-0">
<li class="breadcrumb-item"><a class="text-white" href="index.html">Home</a></li>
<li class="breadcrumb-item text-white active">Ladies</li>
</ul>
<div class="hero-content pb-5 text-center text-white">
<h1 class="hero-heading">Ladies</h1><p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
</div>
</div>
</section>
这就是我正在尝试的,我不知道为什么它不起作用
<section class="dark-overlay overflow-hidden" data-parallax="scroll" style="width:100%">
<div class="position-relative container overlay-content hero hero-page">
<img src="img/fotos/cava720.gif" width="100%">
<div class="hero-content text-center text-white">
<h1 class="hero-heading">Title</h1><p class="lead">subtitle</p>
</div>
</div>
</section>
你知道发生了什么吗?
我只知道模板中有一些我不太了解的 JavaScript 代码...
谢谢!!!
【问题讨论】:
标签: javascript html css bootstrap-4