> For the complete documentation index, see [llms.txt](https://docs.webmix.cc/html-and-css/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.webmix.cc/html-and-css/3.-css/3.5-pai-ban-guan-wu-display-shu-xing.md).

# 3.7 排版 - 關於 display 屬性

每一個 HTML 標籤，預設上都有自己的 display 屬性，也都可以透過 CSS 來改變其預設。常見的值有：

* **inline**：行內元素，例：`<span>`、`<a>`。對行內元素設定 **width** 和 **height** 都會失效。
* **inline-block**：行內區塊元素。對行內區塊元素設定 **width** 和 **height** 會有效。
* **block**：區塊元素，例：`<div>`、`<p>`。會開始於新的一行，並且佔滿父元素整個寬度。
* **none**：若設定此值，元素會於頁面中消失，不會佔住原來的空間位置，但仍然存在於頁面原始碼當中。

測試範例：

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.5-pai-ban-guan-wu-display-shu-xing.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.
