Automatic hiding when CSS text overflows_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:07:56
Original
1177 people have browsed it

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

< ;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 tutorial111cn.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
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!