Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the root selector

Shulou Source: shulou.com Published: 2022-06-01 04:09:37 09月22日 Update

This article mainly introduces the root selector how to use the relevant knowledge, detailed and easy to understand, simple and fast operation, with a certain reference value, I believe that everyone will have a harvest after reading this article how to use the root selector, let's take a look at it.

Introduction to root selector

In CSS3, the: root selector is used to select the root element of the document. The root element refers to the element at the top level of the document tree. In HTML, the root element is always HTML.

Examples:

CSS3:root selector

:root

{

background-color:silver;

}

body

{

background-color:red;

}

php Chinese Net

The content of this article on "how to use root selector" is introduced here, thank you for reading! I believe everyone has a certain understanding of the knowledge of "how to use root selector." If you still want to learn more knowledge, please pay attention to the industry information channel.

Tags: Select element knowledge content document article Chinese net value easy to operate article easy to understand more read introduction structure industry information information channel top level channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn Shulou Technology Redmi macOS