Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]巧用 CSS 实现高频出现的复杂怪状按钮(二) #272

Open
chokcoco opened this issue Nov 21, 2024 · 0 comments
Open

[WIP]巧用 CSS 实现高频出现的复杂怪状按钮(二) #272

chokcoco opened this issue Nov 21, 2024 · 0 comments

Comments

@chokcoco
Copy link
Owner

chokcoco commented Nov 21, 2024

接上篇,巧用 CSS 实现高频出现的复杂怪状按钮

上篇中,我们通过渐变的高阶技巧,实现了如下的内凹圆角边框:

本文,我们将探讨另外一个非常有意思的图形 -- 内凹平滑圆角

此图形与我们在 使用 CSS 轻松实现高频出现的各类奇形怪状按钮 讨论的类似于 Chrome Tab 造型的按钮相比,是一种反向操作。

类似于 Chrome Tab 按钮造型

常见于这样的设计中:

内凹平滑圆角实现上的难点

相对于上述 outside-circle 图形,内凹平滑圆角实现上的难点在于 -- 内凹部分要求是透明的

所以下面这种方式就无法奏效:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant