border-image属性怎么用


本文摘自PHP中文网,作者青灯夜游,侵删。

border-image属性是一个是一个简写属性,通过此属性可使用图片来创建边框,该属性的使用语法是“border-image: source slice width outset repeat|initial|inherit;”。

本文操作环境:windows7系统、CSS3版、Dell G3电脑。

border-image属性是一个是一个简写属性,通过该属性可使用图片来创建边框。

CSS3 border-image属性

作用:使用图片来创建边框

说明:复合属性。设置或检索对象的边框样式使用图像来填充。可以一次性设置: border-image-source,border-image-slice,border-image-width,border-image-outset和border-image-repeat属性的值。

语法:

1

border-image: source slice width outset repeat|initial|inherit;

参数:

border-image-source:用于指定要用于绘制边框的图像的位置。

border-image-slice:图像边界向内偏移。

border-image-width: 图像边界的宽度。

border-image-outset:用于指定在边框外部绘制 border-image-area 的量。

border-image-repeat:用于设置图像边界是否应重复(repeat)、拉伸(stretch)或铺满(round)。

css3 border-image属性使用示例

阅读剩余部分

相关阅读 >>

border-image-slice属性怎么用

html5中dialog元素的详细讲解(代码示例)

html5/css3 经典案例-无插件拖拽上传图片(一)

css3 transition-duration属性怎么用

css3中结构性伪类选择器―:first-of-type实现名言标签(代码实例 )

border-image-width属性怎么用

text-wrap属性怎么使用

详解css3实现弹性布局的方式

ie6不支持css3吗

animation-iteration-count属性怎么用

更多相关阅读请进入《border-image属性》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...