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

边框可拉伸的盒子 | 陈军的博客 #73

Open
rob2468 opened this issue Sep 24, 2023 · 0 comments
Open

边框可拉伸的盒子 | 陈军的博客 #73

rob2468 opened this issue Sep 24, 2023 · 0 comments

Comments

@rob2468
Copy link
Owner

rob2468 commented Sep 24, 2023

https://rob2468.github.io/2023/09/22/stretch-border-box/

问题前端开发中有时会遇到如下图所示的需求,即在一个不规则边框的容器中显示内容。本文讲述如何拆解这个需求,并通过 border-image CSS 属性实现。(下文讲解使用的原始图片是这个。)

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