OverflowY 属性指定如何处理内容的顶部/底部边缘 - 如果内容溢出元素的内容区域。
提示:使用溢出X属性来确定左边缘和右边缘的剪切。
Property | |||||
---|---|---|---|---|---|
overflowY | Yes | Yes | Yes | Yes | Yes |
返回overflowY属性:
object.style.overflowY
设置overflowY属性:
object.style.overflowY = "visible|hidden|scroll|auto|initial|inherit"
Value | Description |
---|---|
visible | The content is not clipped, and it may be rendered outside the content box |
hidden | The content is clipped - and no scrolling mechanism is provided |
scroll | The content is clipped and a scrolling mechanism is provided |
auto | Should cause a scrolling mechanism to be provided for overflowing boxes |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 可见的 |
---|---|
返回值: | 一个 String,表示元素的 Overflow-y 属性 |
CSS版本 | CSS3 |
CSS 参考:溢出-y 属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!