clear 属性设置或返回元素相对于浮动对象的位置。
Property | |||||
---|---|---|---|---|---|
clear | Yes | Yes | Yes | Yes | Yes |
返回明确的属性:
object.style.clear
设置清除属性:
object.style.clear = "none|left|right|both|initial|inherit"
Value | Description |
---|---|
none | Allows floating objects on both sides of the element. This is default |
left | No floating objects allowed on the left side of the element |
right | No floating objects allowed on the right side of the element |
both | No floating objects allowed on either the left or right side of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 没有任何 |
---|---|
返回值: | 一个字符串,表示元素相对于浮动对象的位置 |
CSS版本 | CSS1 |
CSS教程:CSS 浮动
CSS 参考:清晰的属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!