borderImageRepeat 属性设置或返回图片边框是否应重复、圆角或拉伸。
表中的数字指定完全支持该属性的第一个浏览器版本。
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 |
看着那(这边框图片属性代替!
返回 borderImageRepeat 属性:
object.style.borderImageRepeat
设置 borderImageRepeat 属性:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 拉紧 |
---|---|
返回值: | 一个字符串,表示元素的 border-image-repeat 属性 |
CSS版本 | CSS3 |
CSS 参考:边框图片重复属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!