Html 引导4-两张卡之间的div重叠
我需要在图片上做一些类似的东西(这是一个矩形,两张卡片之间有一个箭头,但也重叠在一起)Html 引导4-两张卡之间的div重叠,html,twitter-bootstrap,Html,Twitter Bootstrap,我需要在图片上做一些类似的东西(这是一个矩形,两张卡片之间有一个箭头,但也重叠在一起) 如果您有任何想法,我将不胜感激您可以更改类似的代码: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x
如果您有任何想法,我将不胜感激您可以更改类似的代码:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
</head>
<body style="background-color:#eeeeee;padding:25px;">
<div class="card-columns">
<div class="card" style="width:200;height:200px;border:none;padding-right:20px;padding-left:20px">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.</p>
</div>
</div>
<div class="card" style="width:800px;height:200px;position:relative;border:none;padding-right:20px;padding-left:20px">
<div style="width:60px;height:60px;background-color:#eeeeee;position:absolute;top:70px;left:-40px;text-align:center;line-height:60px;"><i class="fas fa-arrow-right" style="font-size:22px"></i></div>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.</p>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>
卡片标题
这是另一张卡片,其标题和支持文本如下。这张卡有一些额外的内容,使其整体略高
卡片标题
这是另一张卡片,其标题和支持文本如下。这张卡有一些额外的内容,使其整体略高
欢迎来到StackOverflow。我建议绝对定位箭头卡,并应用与卡后面背景相同的背景颜色。我已经这样做了:有没有办法使卡和箭头之间的关系不是行和箭头?您可以将箭头放在现有的
列中,并相应地定位它。谢谢!有时候,最简单的解决办法往往是最难的。我更新:很好,干得好