html - Bootstrap轮播上的背景图像放置
问题描述
我正在尝试在旋转木马的左右两侧放置背景图像。问题是轮播具有set-width(max-width:1000px)和margin:auto用于居中,因此没有空间在轮播周围放置覆盖图或背景图像。有没有办法将背景图片放在轮播后面?
解决方案
将轮播包裹在一个宽度为 100% 的容器 div 中,并将背景图像放在上面。
<div class = "div-with-background-image">
<div class = "carousel">
<!-- carousel stuff in here -->
</div>
</div>
推荐阅读
- python - 使用 Python 将数据填充到现有的 excel 文件中
- angular - Angular 6 Headers 授权和图表
- swift - 为什么从 url 下载图像返回 nil?
- sql - 空列相等
- c# - 找到图像目标时在画布上播放视频。Vuforia - Unity3d
- ffmpeg - FFMPEG DNxHR 与 Alpha 到 Webm
- python - 根据原始数据框列数创建多个数据框
- node.js - 当 pm2 分叉应用程序正在运行时,我如何重新加载配置文件并以最少的停机时间重新启动?
- javascript - 在 React 构造函数中访问 props
- d3.js - 筛选折线图时选择菜单不更新