时间:2021-07-01 10:21:17 帮助过:93人阅读
border-image-source 属性设置边框的图片的路径[none | <image>]
p { border: 20px solid #000; border-image-source: url(border.png); }
border-image-slice 属性图片边框向内偏移[ <number> | <percentage> ](1,4) ?fill
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; }
border-image-width 属性设置图片边框的宽度[ <length>|<number> |<percentage> | auto](1,4)
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; }
border-image-outset 属性设置边框图像区域超出边框的量[ <length>|<number> ](1,4)
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; }
border-image-repeat 属性设置图像边框是否应平铺(repeated)、铺满(rounded)或拉伸(stretched)(1,2)
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; border-image-repeat: rounded; border-image: url(border.png) 27 rounded; }
相信看了本文案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
推荐阅读:
百度贴吧的3D翻牌效果
css3实现动画自行车效果
CSS3实现进度条的俩种方法
以上就是css样式中的border-image使用详解的详细内容,更多请关注Gxl网其它相关文章!