http://www.111cn.net/cssdiv/css/34050.htm
Syntax: overflow: visible | auto | hidden | scroll
visible:: Does not cut content or add scroll bars. If this default value is explicitly declared, the object will be clipped to the size of the window or frame containing the object. And the clip attribute setting will be invalid.
auto: This is the default value of body object and textrea. Cut content and add scrollbars when needed
hidden: Do not display content that exceeds the dimensions of the object.
scroll: Always show scroll bars.
Example
The code is as follows | Copy code |
body { overflow: hidden; } 代码如下 | 复制代码 | body { overflow: hidden; } div { overflow: scroll; height: 100px; width: 100px; } | div { overflow: scroll; height: 100px; width: 100px; } |
css
The code is as follows | Copy code |
代码如下 | 复制代码 |
111cn.net
111cn.net 专业div css教程 111cn.net 专业div css教程 111cn.net 专业div css教程 |
111cn.net 专业div css教程 111cn.net 专业div css教程 111cn.net 专业div css教程 |
111cn.net 专业div css教程 111cn.net 专业div css教程 111cn.net 专业div css教程 |
| 111cn.net
#yc {width:180px;height:100px;overflow:hidden;}< ;table cellspacing="0" cellpadding="0"> |
111cn.net Professional div css tutorial 111cn.net Professional div css tutorial 111cn.net Professional div css tutorial< ;/td> |
111cn.net Professional div css tutorial 111cn.net Professional div css tutorial 111cn.net Professional div css tutorial td> |
111cn.net Professional div css tutorial 111cn.net Professional div css tutorial 111cn.net Professional div css tutorial |
Articles you may be interested in CSS method to control automatic hiding when text overflows CSS automatic hiding processing when text overflows when making web pages