Application of pick-up features
Before the characteristics of the selection, it is necessary to mention the characteristics of CSS inheritance. The characteristic of the so-called inheritance means that the label that is packaged inside will have the pattern properties of the external label. The most typical application of inherited features typically exerts a pattern of the preset of the entire web page, and the part to be specified as other styles can then be set in individual elements. This feature can provide web page designers to play space. Next, please tell the apprayer's application! In fact, this part should be a way to declare, but after you have seen the basic statement and application of the second chapter, you will have a conceptual point. In CSS applications or design, there are several methods of displaying a particular nature based on the relationship or nature of the elements, which is to make you more flexible in control and applications. First, the front and rear selection: The method of specific nature is displayed according to the declaration of the tag before and after.
The front and rear selection is when the browser shows the content specified by the HTML original code, considers the front-rear relationship of the element tag, and the specified style declaration is displayed. That is to say as long as the label arrangement within the HTML original code is in line with the order, the declaration will act!
Element A (Label a) Element B (Label B) Element C (Tag C) ... {Style Rule}
It should be noted that the statement of the front and rear selection is very similar to the collective statement, but the elements of the collective statement must be separated by a comma, while the element label is separated by the front and rear selection, and these two You can mix it.
Element a element B, element C element D element E, ... {style rules}
This way you can declare the style rules of the array before and after selecting the array.
Second, Category Selection: Let a single or several tags use the same group style rule.
Category (Class) allows different element tags to share with the same set of style properties or the same element label set of different groups of style properties. First introduce how to make different elements to use the same set of style properties, as described in the following example.