html - Bootstrap 4:移动和全屏尺寸的垂直线
问题描述
我正在尝试为我的网站构建一个模块,但在放置垂直 hr 时遇到问题,该垂直 hr 应该在顶部和底部有一种淡入淡出。
x = 一些带有以下标题的图像,I = 垂直 hr
移动的:
| x 我 x |
| x 我 x |
| x |
全屏:
“| x I x I x I x I x |”
我当前的 html 文件(目前不使用任何 scss、css 等)。这 {{ 。}} 部分来自我正在使用并表示文本的 hugo 框架。我目前删除了放置垂直线的所有尝试。希望有人可以帮助我解决我的问题。
{{ $file := index $.Site.Data (.Get "folder") (.Get "file") }}
<section class="five-icon">
<div class="container">
<h2 class="text-center mb-3">{{ $file.title }}</h2>
<div class="row text-center d-flex justify-content-center">
{{ range $file.images}}
<div class=" col-xl-2 col-lg-2 col-md-4 col-sm-6 col-6">
<img class="img-fluid" src="{{ .img_path }}" alt="{{ .img_alt }}" title="{{ .img_title }}">
<div class="mt-3">
<b class="text-center bold c-white">{{ .title_bold }} </b>
<p class="text-center c-white" style="hyphens: auto;">{{ .title }}</p>
</div>
</div>
{{end}}
</div>
</div>
</section>
解决方案
推荐阅读
- git - git pull 仅适用于上游主机 - 是否需要推送?
- python - 如何在多处理中运行 pandas concat?
- google-cloud-platform - 有很多 Compute Engine API 请求是否正常?
- ios - TabbarViewController iOS中的Swift Center Circle按钮
- python - 如何克服将 sqlite 文件加载到 colab 中的错误?
- android - 将单选按钮数据发送到 Kotlin 中的下一个活动
- c# - 是否可以将应用程序配置为在 Windows 启动时启动而不需要管理员权限?
- python - 如何继承不同类型的对象
- r - 从 R 函数脚本部署闪亮的发布按钮
- javascript - 需要过滤整个 div 内容,而不仅仅是其中的一部分