使用CSS:根选择器设置文档根元素的样式。
您可以尝试运行以下代码来实现:root Selector
<!DOCTYPE html>
<html>
<head>
<style>
:root {
background: blue;
color: white;
}
</style>
</head>
<body>
<h1>Heading</h1>
<p>This is demo text.</p>
</body>
</html>