如何仅转换 div 左上角的 CSS 形状

发布于 2025-01-20 21:27:06 字数 289 浏览 2 评论 0原文

我的设计必须像下面的图像一样重塑,而不必更改字母,例如使用“变换:偏斜”,因为它将改变现有字母的形状。

我不知道这种形状的名称,而是尝试搜索的,而是使用偏斜或边框透明的解决方案,我自己尝试,但结果不喜欢我想要的,请提供帮助。

I have a design that must be reshaped like the image below without having to change the letters such as using "transform: skew", because it will change the shape of the existing letters.

enter image description here

I dont know the name of this shapes and trying to search but the solution using skew or border transparent, and i trying by myself but the result not like what i want, please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人疚 2025-01-27 21:27:06

我使用像这样的剪辑路径从 @JamesAllan 得到了答案

clip-path: polygon(0 21%, 100% 2%, 100% 100%, 0% 100%);

,这个网络 Bennettfeely 帮助我做了很多形状,非常感谢。

I got the answer from @JamesAllan using clip-path like this

clip-path: polygon(0 21%, 100% 2%, 100% 100%, 0% 100%);

and this web Bennettfeely help me so much to make other shapes, thank you so much.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文