【发布时间】:2022-01-26 14:22:06
【问题描述】:
边框在左侧有切边。这是我要制作的边框:
这是我的代码,我需要进行哪些更改?
<section class="started">
<div class="container">
<div class="row">
<div class="col-3">
<div class="box1 text-center">
<h3>All started in 1956</h3>
<h3>A fresh breeze of modern furniture in town!</h3>
</div>
</div>
</div>
</div>
</section>
.box1 {
height: 300px;
background: #fff;
position: relative;
}
.box1:before {
content: "";
position: absolute;
top: 0;
left: 0;
border-top: 12px solid #000000;
border-left: 12px solid #000000;
border-right: 12px solid #000000;
border-bottom: 12px solid #000000;
width: 0;
}
【问题讨论】:
-
你有代码吗?如果我们看不到有什么问题,我们将无法帮助您修复任何问题。
-
这里是代码的html
-
不确定您是否可以轻松做到这一点。您可能必须使用线性渐变。
-
您提供的 html 代码如何与示例图像相匹配?您的图像上没有文字。里面会有文字吗?创建图像上显示的内容将是微不足道的,但我想这不是实际的残局;为了提供实际有用的提示/代码,您需要提供更多有关您尝试制作的内容的背景信息。
-
好的,请帮助我如何用线性渐变制作这个你知道吗?