CSS border-image-source

CSS border-image-source 定义与用法

border-image-source属性指定要使用的图像,而不是由border-style属性设置的边框样式。

可以使用属性border-image取代它。

提示: 如果值是"none",或者,如果无法显示图像,边框样式会被使用。

默认值: none
继承: no
版本: CSS3
JavaScript 语法: object.style.borderImageSource="url(border.png)"

 

CSS border-image-source 语法

border-image-source: none|image;

 

说明
none 没有图像被使用
image 边框使用图像的路径

 

CSS border-image-source 实例

使用图像作为div元素的边框:

div{
    border-image-source: url(border.png);
}