[英]how to make body not scroll through menu bar
I want when touching the menu, the body to be non scrollable. 我想要在触摸菜单时,主体不可滚动。 I can scroll the body when scrolling on main content but i dont want to scroll the body when touching the mobile menu. 当滚动主要内容时,我可以滚动主体,但是在触摸移动菜单时,我不想滚动主体。 How can I do that? 我怎样才能做到这一点?
Basically the menu “onOpen” even should trigger a change in the body's style to overflow: hidden;
基本上,菜单“ onOpen”甚至应该触发主体样式的更改以overflow: hidden;
and menu “onClose” event should trigger a change in body's style to overflow: auto;
菜单中的“ onClose”事件应触发车身样式的更改以overflow: auto;
Without further details on your case, it's hard to elaborate. 如果没有有关您案件的更多详细信息,将很难进行详细说明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.