【发布时间】:2015-05-22 16:15:49
【问题描述】:
对于每个新打开的模态,我如何防止模态的覆盖变暗?
This fiddle 会让事情变得清晰。您会注意到每个新模式的背景叠加层都变暗了。
我尝试清除后续模态窗口的背景,添加具有这些属性的类:
background: none
// and
background: transparent
// and
background-color: rgba(0, 0, 0, 0) // reset bg
// and
background-color: rgba(255, 255, 255, 1); // all clear and transparent bg
但根本没有任何效果。
需要明确的是,我在我的应用程序中将 Kendo window 替换为 Bootstrap 模式,this fiddle 显示了我期望的确切结果(在我当前的应用程序中运行)但使用的是 Kendo。
【问题讨论】:
-
背景是需要还是完全去掉也可以?
-
我需要它。实际上,它应该作为一种模式工作。
标签: javascript jquery css twitter-bootstrap kendo-ui