VisualViewport: thuộc tính offsetLeft
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2021.
Thuộc tính offsetLeft chỉ đọc của giao diện VisualViewport trả về độ lệch của cạnh trái khung nhìn trực quan so với cạnh trái khung nhìn bố cục tính bằng pixel CSS, hoặc 0 nếu tài liệu hiện tại không hoàn toàn hoạt động.
Giá trị
Một số thực dấu phẩy động.
Thông số kỹ thuật
| Specification |
|---|
| CSSOM View Module> # dom-visualviewport-offsetleft> |