How to use the root selector
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.