.box {
border:12px solid #000;
border-image-source:url(xxx.png);
border-image-slice:12 12 12 12; //上右下左 需要切割的像素高度
border-image-width:12px 12px 12px 12px; //用于覆盖边框的图片宽度,和切割图片的宽度所对应的
border-image-outset:12px 12px 12px 12px; //让边框背景延伸到盒子外
border-image-repeat:repeat;
}
11-24
493
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-08
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交