# 3.21 關於不透明度 opacity

## 不透明度 opacity

一個元素的不透明度，可以設定的值為 0 \~ 1的小數點。

* 0 代表完全透明。
* 1 代表完全不透明。
* 寫小數點的時候，零可以省略不寫，例： `0.5` 可以簡寫成 `.5` 。

範例：

{% embed url="<https://codepen.io/carlos411/pen/KKPyjaB>" %}

結果如圖：

![opacity 不透明度](/files/-Lo-YmFcteOphXtQ_88C)


---

# 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://docs.webmix.cc/html-and-css/3.-css/3.20-guan-wu-tou-ming-du-opacity.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.
