CSS3 to get started on the front

Source: Internet
Author: User
We know that if you want to learn the front-end, that CSS3 and HTML5 is the most basic and the first to learn a knowledge, today to bring you the front-end CSS3, let us look at

No more nonsense.

What is CSS3

CSS3 key elements of forming a page
The CSS3 is split into "modules". The old specification has been split into small chunks, and new ones have been added.
Some of the most important CSS3 modules are as follows:

Selector Selector

CSS, also known as the style, consists of the "selector", "style attribute" and "attribute value" three parts (a inside question);

If you want to set CSS styles in HTML elements, you need to set the "id" and "class" selectors in the element ①.

The ① element is called the DOM in JS and then divided into block-level elements, and inline elements
If you do not understand the details of self-view

<p class= "xxx" >Hello,world</p> Selector {property: value}.xxx{width:100px;} <p id= "xxx" >Hello,world</p> Selector {property: value} #xxx {width:100px;}

Both are pretty much the same, and if the selector is a class, start with "." When writing the style. Start with a. xxx, if the selector uses the ID to start with "#" such as #xxx (the special emphasis ID belongs to the unique selector, the class name can only be used once).

Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!

Related reading:

How to solve the IE11 CSS Hack

Axios How to Promise-based HTTP request client

Vue How to use Anmate.css

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.