OverflowX 属性指定如何处理内容的左/右边缘 - 如果内容溢出了元素的内容区域。
提示:使用溢出Y属性来确定顶部和底部边缘的剪切。
Property | |||||
---|---|---|---|---|---|
overflowX | Yes | Yes | Yes | Yes | Yes |
返回overflowX属性:
object.style.overflowX
设置overflowX属性:
object.style.overflowX = "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-x 属性 |
CSS版本 | CSS3 |
CSS 参考:溢出-x 属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!