# Use Hex Code to Color Elements Green

说明：

```
记住 hex code 遵循 red-green-blue（红-绿-蓝），或称为 rgb 格式。hex code 中的前两位表示颜色中红色的数量，第三四位代表绿色的数量，第五六位代表蓝色的数量。

所以要得到绝对的纯绿色，你只需要在第三和第四位使用 F （最大可能的数值），且在其它位使用 0 （最小可能数值）。

通过对 background-color 应用 hex code 值 #00FF00 以把 body 元素的背景色设置为绿色。
```

原始代码：

```
<style>
  body {
    background-color: #FF0000;
  }
</style>
```

调试代码：

```
<style>
  body {
    background-color: #00FF00;
  }
</style>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iexam.gitbook.io/fcc/ji-chu/use-hex-code-to-color-elements-green.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
