CSS 2 text ⑤

Source: Internet
Author: User

In the actual design process, in order to layout the good-looking, such as the above line of words, often have such a demand, when not put down, we will let it show

So this ....  How do you do it with CSS? We can use Text-overflow.

Text-overflow

Text-overflow:clip | Ellipsis

Clip: Default value

Ellipsis: Ellipsis

  

Overflow:hidden; When the overflow is cut off, if there is no this, the overflow when not cut off, the text-overflow will not work

White-space:nowrap: If you do not write this, then he will automatically change the line, will not achieve this effect

So we must write with these two values when we write Text-overflow:ellipsis.

  

|

|

| The effect is like this

|

| We want the mouse to move to the style on the button like this

|

                

|

| But it's actually like this.

                

So what do we do? We can use the cursor to define its mouse shape.

These small ones are infrequently used and can be ignored

        <uri>*: You can customize a picture and the URL can be written multiple

Auto: Automatic processing may move to a hyperlink when he is a mouse hand type

Default: Normal cursor

None: Mouse disappears

Help: Mouse with a say hello

Pointer: Mouse Hand type

Zoom-in: Magnifying Glass

Zoom-out: Narrow Mirror

Move: There will be arrows that go up and down on both sides of the arrow, and we'll use this when we move some elements.

      

       

Cursor:pointer; Show a hand type

Cursor:url (xx.cur), pointer; Using a custom button style, followed by a self-styled hand, if the custom style picture is out of the question, it will use its own style, equivalent to a spare

      

Forced inheritance

Inherit

    

        

        

CSS 2 text ⑤

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.