CSS Block vs Inline

big boy can code

Display Block

- 區塊元素

- 撐滿容器,換行

ex. div, header, section, footer

Display inline

- 行內元素

- 沒有換行

ex. span, a

example

資源

w3school - 連結🔗

學習CSS版面配置 - 連結🔗

Big Boy 訂閱

Big Boy Youtube - 連結🔗

Big Boy Facebook- 連結🔗

Big Boy Website- 連結🔗

CSS Block vs Inline

By Danny Huang

CSS Block vs Inline

  • 373