这篇文章将为大家详细讲解有关css样式中的border-image有什么用,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
border-image-source 属性设置边框的图片的路径[none | <image>]
div { border: 20px solid #000; border-image-source: url(border.png); }
border-image-slice 属性图片边框向内偏移[ <number> | <percentage> ](1,4) ?fill
div { 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)
div { 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)
div { 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)
div { 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; }
关于“css样式中的border-image有什么用”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。