我遇到了为什么我正在构建的英雄部分没有响应的问题,我正在使用引导程序和网格系统,英雄部分的图像是响应的,因为我正在使用类 img-fluid 但是文本和按钮不跟风我真的很困惑我哪里出错了,因为我已经连续一个小时把头撞在墙上,所以我将不胜感激。
这是HTML:
<!-- ======= Header ======= -->
<header id="header" class="fixed-top">
<div class="container d-flex align-items-center">
<a href="index.html"><img src="assets/img/logo.png"></a>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.html" class="logo mr-auto"><img src="assets/img/logo.png" alt=""></a>-->
<nav class="nav-menu d-none d-lg-block">
<ul>
<li class="active"><a href="index.html">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#team">Team</a></li>
<li class="drop-down"><a href="">Drop Down</a>
<ul>
<li><a href="#">Drop Down 1</a></li>
<li class="drop-down"><a href="#">Deep Drop Down</a>
<ul>
<li><a href="#">Deep Drop Down 1</a></li>
<li><a href="#">Deep Drop Down 2</a></li>
<li><a href="#">Deep Drop Down 3</a></li>
<li><a href="#">Deep Drop Down 4</a></li>
<li><a href="#">Deep Drop Down 5</a></li>
</ul>
</li>
<li><a href="#">Drop Down 2</a></li>
<li><a href="#">Drop Down 3</a></li>
<li><a href="#">Drop Down 4</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav><!-- .nav-menu -->
</div>
</header><!-- End Header -->
<!-- ======= Hero Section ======= -->
<section id="hero" class="d-flex align-items-center">
<div class="container" data-aos="zoom-out" data-aos-delay="100">
<div class="hero-image">
<img src="assets/img/hero-img.png" class="img-fluid">
</div>
<div class="hero-textbox">
<h2 class="hero-heading-text">WINNING WITH DATA:<br>
CRM AND ANALYTICS FOR THE BUSINESS OF <br>SPORTS</h2>
<p class="hero-description-text">Suitable for beginners, intermediaries or digital marketers who haven't yet included data-driven decision making in their approach. Our book provides a fantastic start for those looking to understand the role of CRM and Business Intelligence for the sports industry.</p>
<a href="#" class="btn btn-block btn-primary btn-default"><span class="glyphicon glyphicon-shopping-cart"></span> Order Now</a>
</div>
</div>
</section><!-- End Hero -->
这是 CSS: https ://pastebin.com/F3ghpywz
非常感谢您提前帮助我解决了这个问题。
亲切的问候,乔希。