html - 滚动条显示在页面底部
问题描述
我正在创建一个 HTML 文档,在添加一个新部分后,页面底部会出现一个滚动条,这可能会将布局推向右侧。
我设法缩小导致问题的原因。它发生在我添加以下代码后:
HTML
<section id="services">
<div class="row">
<div class="container">
<div class="col-md-12">
<div class="content-title">
<h3 class="text-center">Szolgáltatásaink</h3>
</div>
</div>
</div>
</div>
</section>
CSS:
.content-title {
padding-top: 4rem;
}
.content-title h3 {
color: #333333;
text-transform: uppercase;
position: relative;
padding-bottom: 2rem;
}
.content-title h3:after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 15%;
height: .4rem;
background: #ff5f06;
margin: 0 auto;
}
这是实时应用程序:https ://avrasys.hu/
解决方案
我查看了您的实时站点https://avrasys.hu/,发现从课堂中删除margin-left: -15px;
和margin-right: -15px;
退出.row
课程可以解决问题。
推荐阅读
- c# - 如何让程序显示它正在使用的资源?
- vba - 从 VBA 进行 UTF-8 调用
- ruby-on-rails - 运行迁移会破坏测试数据库中的所有视图
- google-apps-script - 在 Google 脚本函数中读取单元格并在函数#inception 中使用它
- tfs - 将附加列添加到链接页面 (TFS 2018)
- c# - 一个用于 Raspberry Pi 3 IOT 的 C# UWP 应用程序中的多个命名空间
- java - JAVA:使用多线程将 ZipFile 复制到 ZipOutputStream
- python - ibm_boto3 在 Mac OS 上与 scikit-learn 的兼容性问题
- angular - 角度材料数据表未填充数据
- android - 生成签名 APK 时的 Android Studio 错误:插件 Android 支持中的异常