border-image和border-radius同时使用时无法实现渐变边框圆角

122 阅读1分钟

解决方案:在盒子外层套一个盒子用来做边框,使用外面盒子的padding代替内部盒子的border宽度,外部盒子的background-color代替内部盒子的边框颜色

image.png