Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在模式打开时锁定滚动。我添加到正文溢出:隐藏,但这无济于事。
我还安装了几乎相同的 js lib scroll-lock。
这是那个神奇的镜头https://imgur.com/5bd7K55
如何锁定滚动?
通过添加附加高度来修复它:100vh