문서의 루트 요소에 스타일을 지정하려면 CSS:루트 선택기를 사용하세요.
예시
다음 코드를 실행하여 구현을 시도할 수 있습니다. 루트 선택기
<!DOCTYPE html>
<html>
<head>
<style>
:root {
background: blue;
color: white;
}
</style>
</head>
<body>
<h1>Heading</h1>
<p>This is demo text.</p>
</body>
</html>