Use css to automatically hide text

Source: Internet
Author: User
Tags inheritance

Do not wrap <NOBR> </NOBR> (do not wrap)
 
Overflow
Version: CSS2 compatibility: IE4 + NS6 + inheritance: None
 
Syntax:
 
Overflow: visible | auto | hidden | scroll
 
Parameters:
 
Visible: Do not cut the content or add a scroll bar. If this default value is explicitly declared, the object is cut to the size of the window or frame containing the object. And the clip attribute settings will be invalid.
Auto: The default value for the body object and textarea. Cut the content and add a scroll bar as needed
Hidden: do not display content that exceeds the object size
Scroll: always displays the scroll bar
 
Note:
 
Retrieves or sets how to manage content when the content of an object exceeds its specified height and width.
Setting the textarea object to a Den value will hide its scroll bar.
For a table, if the table-layout attribute is set to fixed, the td object supports the overflow attribute with the default value of hidden. If it is set to hidden, scroll, or auto, the content beyond the td size will be cut. If it is set to visible, additional text overflows to the right or left (depending on the setting of the direction attribute) cells.
This attribute is available on MAC platform since IE5.
The corresponding script feature is overflow.
Example:
 
Body {overflow: hidden ;}
Div {overflow: scroll; height: 100px; width: 100px ;}
Text-overflow version: IE6 + private property inheritance: None
 
Syntax:
 
Text-overflow: clip | ellipsis
 
Parameters:
 
Clip: do not show the omitted mark (...), but simply crop
Ellipsis: when the object text overflows, the omission mark (...) is displayed (...)
 
Note:
 
Sets or retrieves whether an omission mark (...) is used to indicate text overflow in the object.
The corresponding script feature is textOverflow. For more information, see my other Bibliography.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.