gpt4 book ai didi

HTML/CSS - 表头 (thead) 中的三 Angular 形 Angular

转载 作者:太空宇宙 更新时间:2023-11-03 22:56:36 25 4
gpt4 key购买 nike

我正在尝试创建一个带有三 Angular 形 Angular 的 table 头。正是我想要得到这个结果:

enter image description here

我创建了类似的东西:

table .main_cat_left {
background-color: #57B3E3;
}

table .main_cat_center {
border-left: 10px solid #57B3E3;
border-top: 10px solid #FFC600;
width: 0;
height: 0;
}

table .main_cat_right {
background-color: #FFC600;
}

但结果并不好:

enter image description here

是否有可能在不使用图片和 javascript(仅使用 CSS)的情况下获得此结果??

谢谢。

编辑;

这是工作示例:https://jsfiddle.net/5o5qybk8/

最佳答案

你可以只使用渐变:

table .main_cat_center {
background:linear-gradient(to bottom left, #FFC600 50%, #57B3E3 50%);
}

https://jsfiddle.net/5o5qybk8/1/https://jsfiddle.net/5o5qybk8/3/

关于HTML/CSS - 表头 (thead) 中的三 Angular 形 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38169481/

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