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.
我在 javascript 中手动显示了一个弹出框,但为了增加重点,我想让它成为模态的,即禁用背景功能并淡出。有没有一个选项可以做到这一点,或者我将如何手动进行?
我知道它混合了设计隐喻,但它会是有用的功能,而且我看不到重新设计模态以适应相对定位很容易。
看看这个脚本,我认为这应该对你有帮助
http://scruffles.github.io/BootstrapModalPopover/
添加
.popover, .tooltip { z-index: 1060 !important; }
适合你的风格