html - 在 CSS 中用箭头连接框

标签 html css

<分区>

我想知道是否可以使用 CSS 进行这样的设计?

我将不胜感激任何一段代码。

enter image description here

最佳答案

我会那样做, example

#box1, #box2 , #box3
{
    width: 25%;
    height: 25%;
    position: absolute;
}

#box1
{
    left: 25%;
    top: 25%;
    border-left: 2px dashed black;
    border-right: 1px dashed black;
    border-bottom: 2px dashed black;
    z-index: 1;
}
 #box2 
{
    right: 25%;
    top: 25%;
    border-left: 1px dashed black;
    border-right: 2px dashed black;
    border-bottom: 2px dashed black;
    z-index: 1;
}
 #box3
{
    right: 37.5%;
    top: 40%;
    z-index: 2;
}

box3 位于 box1 和 box2 之上,因此它将隐藏“额外”边框。

这将为您提供基本设计。 (根据您的需要更改尺寸) 您将必须通过创建 CSS 三 Angular 形或使用图像并绝对定位它们来添加箭头。

关于html - 在 CSS 中用箭头连接框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18772694/

相关文章:

html - 显示隐藏的表格行搞砸了表格的其余部分

html - 尝试使用 CSS 在页面底部排列单独的 div

javascript - 我不清楚将 Reactstrap 安装到现有元素中

html - 为自动调整大小的 img 保留空间

javascript - div的高度没有扩展

html - 如何删除 Ion-Toolbar 上的边框?

html - CSS 固定位置干扰自动宽度

javascript - 在 Web 上缓存。浏览器中如何处理地址首次访问?

javascript - 在html和Java中使用表单和函数时计算错误

html - 我怎样才能去掉顶部多余的空白区域?