Homepage
Open in app
進擊的 Tool’ s
Sign in
Get started
Tagged in
Web Development
進擊的 Tool’ s
欲利其工 必利其器
More information
Followers
74
More, on Medium
Web Development
sexyoung
in
進擊的 Tool’ s
Sep 16, 2015
clientWidth, offsetWidth and scrollWidth
用 javascript 取 DOM 的寬度時,可分為:
clientWidth (可視範圍)
offsetWidth (元件本身範圍)
scrollWidth (實際範圍)
一張圖就可以搞清楚它們的差別。
Read more…
17