作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Menu
组件在用户将鼠标悬停在元素上时显示菜单。但是,我注意到当菜单打开时,它还包含一个 Popover
组件,该组件打开并覆盖整个屏幕作为覆盖层,从而阻止与屏幕的交互。我不希望在打开 Menu
组件时打开叠加层。我怎样才能做到这一点?
最佳答案
Menu
组件继承自Popover
,后者继承自Modal
。所以所有 Modal
属性也可用于 Menu
。那些可能对你有帮助的;
hideBackdrop
:如果 true
,则不渲染背景。disableScrollLock
:禁用滚动锁定行为。关于javascript - react Material 用户界面 : How to prevent the Popover component overlay the screen when Menu component opens?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65832673/
我是一名优秀的程序员,十分优秀!