Viblo
  • Posts
  • Questions
  • Discussions
Announcements
No announcement yet.
All Announcements
en
  • Tiếng Việt
  • English
  • Viblo
  • Viblo Code
  • Viblo CTF
  • Viblo CV
  • Viblo Learning
  • Viblo Partner
  • Viblo Battle
  • new
    Viblo Interview
new
Avatar

TDT

@tdt412

Report
  • Posts
  • Series
  • Questions
  • Answers
  • Bookmarks
  • Followings
  • Followers
  • Tags
  • Reputations
  • Communication

Hỏi về JavaScript "Cuộn đến đâu load đến đó"

Avatar
TDT
Answered Oct 12th, 2019 2:42 a.m.

Mình ko biết nhiều về frontend lắm nhưng có lẽ vấn đề ở đây nằm ở method offsetTop. Bạn thử xem offsetParent của nó có xem có là static position ko? Thường thì nó là body. Mà cho dù là body cũng có sự chênh lệch với scrollbar.

+1

Total post views

0

Reputations

5

Following tags

1

Following users

5

Followers

0

Posts

0

Bookmarks

0

Total questions

0

Total answers

1

Technical skills


JavaScript HTML CSS PHP Git Linux MySql Apache nginx Windows SQL Laravel HTML5 Docker SCSS Bootstrap CSS3 VueJS Docker Compose

Organizations


Have no organizations yet.

Posts tendency


Resources

  • Posts
  • Organizations
  • Questions
  • Tags
  • Videos
  • Authors
  • Discussions
  • Recommend System
  • Tools
  • Machine Learning
  • System Status

Services

  • Viblo Viblo
  • Viblo Code Viblo Code
  • Viblo CTF Viblo CTF
  • Viblo CV Viblo CV
  • Viblo Learning Viblo Learning
  • Viblo Partner Viblo Partner
  • Viblo Battle Viblo Battle
  • Viblo Interview Viblo Interview

Mobile App

Get it on Google Play Download on the App Store
QR code

Links

  • Atom Icon

© 2026 Viblo. All rights reserved.

  • About Us
  • Feedback
  • Help
  • FAQs
  • RSS
  • Terms
  • DMCA.com Protection Status
Viblo
Let's register a Viblo Account to get more interesting posts.
Register