Skip to content

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

@rob2468

Description

@rob2468

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions