当我打开Twitter Bootstrap模式时,如何更改我看到页面的方式? [英] How can I change the way I see the page behind when I open a Twitter Bootstrap modal?
问题描述
我正在打开一个模态但是当我这样做时,模态背后的页面变得很暗。有人可以解释我如何改变这一点。例如,我怎么能这样做,所以背景上只有一个非常浅的阴影。
I am opening a modal but when I do this the page behind the modal goes very dark. Can someone explain how I can change this. For example how could I make it so there's just a very light shading on the background.
我还注意到当我点击背景时,我的模态消失了。有没有办法可以删除此功能。我想我的模态只有当用户点击提交或关闭模态本身时才会消失。
I also notice that when I click the background then my modal disappears. Is there a way I can remove this functionality. I would like my modal to only go away when the user clicks submit or close on the modal itself.
推荐答案
你在找什么是 http://twitter.github.com/bootstrap/javascript.html#modals模态背景静态以禁用背景点击关闭。
What your looking for is http://twitter.github.com/bootstrap/javascript.html#modals modal backdrop static to disable closing on background click.
同样对于背景黑暗调整
.modal-backdrop, .modal-backdrop.fade.in {
opacity: 0;
}
这篇关于当我打开Twitter Bootstrap模式时,如何更改我看到页面的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!