gpt4 book ai didi

css - 仅使用 CSS 创建标签或选项卡

转载 作者:行者123 更新时间:2023-12-04 20:22:55 25 4
gpt4 key购买 nike

我想创建一个选项卡或标签,如果可能的话,只使用 CSS 而不使用图像。这就是我的意思:

Label

我可以创建一端,但无法创建三 Angular 点。是否可以只使用 CSS 来做到这一点?

最佳答案

确实有创建 CSS 三 Angular 形的方法,这里是 css-tricks.com 的一部分:

.arrow-right {
width: 0;
height: 0;
border-top: 60px solid transparent;
border-bottom: 60px solid transparent;
border-left: 60px solid green;
}

http://css-tricks.com/snippets/css/css-triangle/

关于css - 仅使用 CSS 创建标签或选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12906200/

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