--- id: bad87fee1348bd9aedf08736 title: Style the HTML Body Element challengeType: 0 videoUrl: '' localeTitle: 设置HTML Body Element的样式 --- ## Description
现在让我们重新开始讨论CSS继承。每个HTML页面都有一个body元素。
## Instructions
我们可以通过给它一个黑色的background-color来证明body元素存在。我们可以通过在style元素中添加以下内容来实现:
身体 {
背景颜色:黑色;
}
## Tests
```yml tests: - text: 给你的body元素黑色的background-color 。 testString: 'assert($("body").css("background-color") === "rgb(0, 0, 0)", "Give your body element the background-color of black.");' - text: 确保您的CSS规则使用左右大括号正确格式化。 testString: 'assert(code.match(/ ```
## Solution
```js // solution required ```