div
{
border-image-source: url(border.png);
}
border-image-source属性指定要使用的图像,而不是由border-style属性设置的边框样式。
提示: 如果值是"none",或者,如果无法显示图像,边框样式会被使用。
| 默认值: | none |
|---|---|
| 继承: | no |
| 版本: | CSS3 |
| JavaScript 语法: | object.style.borderImageSource="url(border.png)" |
border-image-source: none|image;| 值 | 说明 |
|---|---|
| none | 没有图像被使用 |
| image | 边框使用图像的路径 |