outlineOffset 属性偏移轮廓,并将其绘制到边框边缘之外。
轮廓与边框有两个不同之处:
Property | |||||
---|---|---|---|---|---|
outlineOffset | Yes | 15.0 | Yes | Yes | Yes |
返回outlineOffset属性:
object.style.outlineOffset
设置outlineOffset属性:
object.style.outlineOffset
= "length|initial|inherit"
Value | Description |
---|---|
length | The distance the outline is outset from the border edge. Default value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 0 |
---|---|
返回值: | 一个字符串,表示元素的outline-offset属性 |
CSS版本 | CSS3 |
CSS 参考:轮廓偏移属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!