CSS Miscellaneous (1)

Source: Internet
Author: User

What is a note? A note is written by me at will. Remember what I think is useful at ordinary times.

1. Text-OverflowClip|Ellipsis

Whether to display "..." When text overflows. This attribute must be in overflow: hidden mode.

Clip: do not show the omitted mark (...), but simply crop
Ellipsis: When the object text overflows, the omitted mark (...) is displayed (...)
 

EllipsisCode

<Div Style="Width: 50px; Background-color: Silver; text-overflow: ellipsis; overflow: hidden">
123456789
</Div>

Effect:

123456789

 

Two new rules are found:

1. Invalid Chinese Characters

< Div Style = " Width: 50px; Background-color: Silver; text-overflow: ellipsis; overflow: hidden " >
Chinese is invalid. I don't know why
</ Div >

 

Chinese is invalid. I don't know why

2. The width attribute is ignored for inline objects.

< Label Style = " Width: 50px; Background-color: red " > The specified width is invalid. No title page is set. </ Label >

 

:

The specified width is invalid. No title page is set.

If it cannot be displayed normally, you only need to add a display: block, which can be regarded as a block-level element.

The specified width is invalid. No title page is set.

2. Clear the value of this attribute indicates that no floating object edge is allowed.

The value of this attribute indicates that the edge of a floating object is not allowed. See float attributes. The corresponding script feature is clear. None: Allow floating objects on both sidesBoth: Float objects are not allowed.Left: Float objects on the left are not allowed.Right: Float objects on the right are not allowed.
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.