gpt4 book ai didi

css - 更改边框高度

转载 作者:行者123 更新时间:2023-11-28 12:11:38 28 4
gpt4 key购买 nike

我有一个带有三 Angular 形后边框的 div,但我想降低三 Angular 形的高度。 jsfiddle

<div class="box">
<div class="content"></div>
</div>

.box {
width: 200px;
height: 120px;
position: relative;
background-color: #88b7d5;
}
.box:after {
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
border-color: rgba(136, 183, 213, 0);
border-top-color: #88b7a1;
border-width: 100px;
margin-left: -100px;
}

最佳答案

在 .box 添加一个 this:after definition:

border-top-width: 50px;

https://jsfiddle.net/13uwb7kb/

关于css - 更改边框高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30410365/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com