" in css refers to the descendant element, which is a selector unique to CSS3. "Parent element > Child element" means selecting all child elements of the parent element. The difference from "parent element child element" is that "parent element child element" Element" selects all descendant elements, and "Parent Element>Child Element" selects only one generation."/> " in css mean?-CSS Tutorial-php.cn"> " in css refers to the descendant element, which is a selector unique to CSS3. "Parent element > Child element" means selecting all child elements of the parent element. The difference from "parent element child element" is that "parent element child element" Element" selects all descendant elements, and "Parent Element>Child Element" selects only one generation.">
Home > Article > Web Front-end > What does ">" in css mean?
The ">" in css refers to the child element, which is a CSS3-specific selector. "Parent element > child element" means selecting all child elements of the parent element, which is the same as "parent element child element" The difference is that "parent element child element" selects all descendant elements, and "parent element > child element" only selects one generation.
" in css mean?" >
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
These are CSS3-specific selectors. E > There is no usage of <.
E F represents the F element following E in HTML.
nth-child is a pseudo-class usage. For example, p:nth-child(2) means to select the second p among the parent elements of p. This may not be easy to understand.
Extended information:
CSS can perform pixel-level precise control of the layout of element positions in web pages, supports almost all font size styles, and has the ability to control web page objects and models Style editing capabilities.
Technical Application
Add a hyperlink to the HTML file and introduce the external CSS document. This method is the most convenient for managing the web page style of the entire website. It separates the text content of the web page from the layout design. As long as you define the style of the web page in a CSS document (with the extension CSS), and then add a hyperlink to the document in the web page, the web page will be displayed according to the style defined in the CSS document.
Recommended learning: css video tutorial
The above is the detailed content of What does ">" in css mean?. For more information, please follow other related articles on the PHP Chinese website!