HTML5 + CSS3 and html5css3

Source: Internet
Author: User

HTML5 + CSS3 and html5css3

Let's talk about it first:I am a cainiao, or a new year that has just entered the front-end field. I am constantly improving, understanding the code most deeply, and I do not know how to understand it.

Abbreviation of background attribute:

Combination of background-position attributes: [left | center | right] | [top | bottom] (the codes in the combination are separated by spaces)

The background-attachment attribute sets whether the background image is fixed or scrolled along the rest of the page.

The abbreviated order of background attributes is as follows: background-color | background-image | background-repeat | background-attachment | background-position (in general, the background color and background image are not used together., it is rarely used together, but it is used when the background image is transparent)

Rounded corner Frame: Border-radius and border-image of css3

Border-radius: Top, right, bottom, left (four attribute values)

Border-image: url (), cropping location, repetition

Eg: border-image: url (), 25% 25% 25% 25%/25px round; (horizontal and vertical border width)

Shadow:Box-shadow

Box-shadow: 3px (horizontal shadow position) 3px (vertical shadow position) 6px (shadow width) #666 (color );

Opacity:

Rgba also sets the color and opacity.

Font-family: 'Open Sans ', Helvetica, Arial, sans-serif; line-height: 23.8px; ">

The last displayed transparency is 80%.

Opacity

This attribute value can also achieve transparent results, but it is not implemented in the background but in the foreground.

0 between 0 and 1 of the attribute values is transparent. 1 is not transparent.

Summary

When we hit the code, we can't just look at the implementation effect, but also think about the code elegantly. Although we are in the house, we still need to stay elegant. It is necessary to be an elegant front-end developer.

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.