gpt4 book ai didi

css - 带切割三 Angular 形的矩形

转载 作者:行者123 更新时间:2023-11-28 18:31:35 25 4
gpt4 key购买 nike

如何在 css 中制作类似的东西?

https://www.dropbox.com/s/6ol23la6ey373gt/example.png

最佳答案

你可以在 .up 中添加一个 border-image 来查看上面图像的完整克隆效果!

Fiddle

div.wrapper {
background:#d89043;
width:400px;
height:300px;
position:relative;
}
div.up {
width:0px;
height:0px;
border-left:50px solid transparent; /* left arrow slant */
border-right:50px solid transparent; /* right arrow slant */
border-bottom:50px solid #fff; /* bottom, add background color here */
font-size:0px;
line-height:0px;
position:absolute;
bottom:0;
margin-left:40%;
}​

关于css - 带切割三 Angular 形的矩形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14127753/

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