Convert between viewport units and pixels: vw and vh are 1% of the viewport width and height, handy for full-screen layouts.
| 裝置 | 寬度(px) | 典型 vw 示例 |
|---|---|---|
| 手機 | 360–414 | 100vw ≈ 360–414px |
| 平板 | 768–1024 | 50vw ≈ 384–512px |
| 筆記本 | 1280–1440 | 50vw ≈ 640–720px |
| 桌面 | 1920 | 50vw = 960px |
換算公式:vw = px ÷ 視口寬度 × 100;px = vw ÷ 100 × 視口寬度(vh 同理用高度)。
設計稿標註、配色與排版相關的快速參考。