[Simplified] Several background attributes and text attributes added by h5,

Source: Internet
Author: User

[Simplified] Several background attributes and text attributes added by h5,

I. background image display:

① Background-size: Specifies the size of the background image;

Value: pixel value, percentage, auto, cover, and contain

② Background-origin: Specifies the starting position of the background image;

Value: padding-box (default), content-box, and border-box

③ Background-clip

Value: padding-box, content-box, and border-box (default)

 

Ii. HSLA:

Adds a color attribute;

H: Color

S: Saturation

L: brightness

A: Transparency

 

3. Add gradient colors:

Radial-gradient :( * position (deg), color percentage, color percentage); radial gradient

Linear-gradient :( * position, color percentage, color percentage); linear gradient

 

4. New reflection:

-Webkit-box-reflect :( direction, offset, color (linear), url)

 

5. MASKS and MASKS:

-Webkit-mask: (url, repeat, position, size)

 

6. Custom fonts:

@ Font-face {

Font-family: 'iconfont'; Define the font name

Src: url ('iconfont. tff'); load font

}

 

7. multiple lines of text ellipsis (four lines in css)

-Webkit-box-orient: vertical => vertical text display

-Webkit-line-clamp:3=> Display3Line Text

Display: webkit-box => elastic box Model

Overflow: hidden => overflow hiding

 

VIII. Text shadow: (can be used together)

Text-shadow: offsetX, offsetY, fuzzy distance, color

 

The above content is incomplete. Some punctuation marks are used in Chinese and will be revised and supplemented later.

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.