dd

CSS3 border-image-source 属性


实例

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

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

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有浏览器都不支持border-im-source 属性。

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

属性定义及使用说明

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

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

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

语法

border-image-source: none|image;


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