本篇内容主要讲解“css的border-image属性怎么设置”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“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的选择器有哪些
css的选择器可以分为三大类,即id选择器、class选择器、标签选择器。它们之间可以有多种组合,有后代选择器、子选择器、伪类选择器、通用选择器、群组选择器等等
到此,相信大家对“css的border-image属性怎么设置”有了更深的了解,不妨来实际操作一番吧!这里是编程网网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!