From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/glossary/block/css/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 files/zh-tw/glossary/block/css/index.html (limited to 'files/zh-tw/glossary/block/css/index.html') diff --git a/files/zh-tw/glossary/block/css/index.html b/files/zh-tw/glossary/block/css/index.html new file mode 100644 index 0000000000..c9da6a9cb5 --- /dev/null +++ b/files/zh-tw/glossary/block/css/index.html @@ -0,0 +1,22 @@ +--- +title: 區塊 (CSS) +slug: Glossary/Block/CSS +tags: + - Block + - CSS + - HTML + - display + - 術語表 +translation_of: Glossary/Block/CSS +--- +

在網頁上一個區塊是一個 {{glossary("HTML")}}元素({{glossary("element")}})它會出現一個新的行,例:在前面的元素之下和後面的元素之前(通常稱爲塊級元素)。擧個例子, {{htmlelement("p")}} 標簽就是一個默認的塊級元素,而 {{htmlelement("a")}} 標簽則是一個内聯元素— 你可以在 HTML 源代碼放一些相鄰的鏈接,他們將會并列渲染在相同的行。

+ +

使用 {{cssxref("display")}} 屬性你可以隨意改變大多數元素的顯示方式,不論是内聯還是區塊(其中還有很多其他的選項); blocks 也同樣會受到定位方案和 {{cssxref("position")}} 屬性的影響。

+ +

了解更多

+ +

基礎知識

+ + -- cgit v1.2.3-54-g00ecf