# CSS 21. width & height 額外設定- vw、vh - 基本的設定: ``` <h1>this is h1.</h1> ``` ``` h1 { color: white; background-color: blue; width: 200px; height: 150px; } ```  --- - 可隨瀏覽器大小做增幅的屬性 / **vw**、**vh**。 先不去管 100 這個數值,主要是後面的: vw、vh 設定後,其長寬可自動跟著瀏覽器去做一個調整。  ###### tags: `2022 網頁開發全攻略教程 / CSS篇章 - box model`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up