问题描述
我的asp.net mvc代码中有一个bootstrap模式,它在运行时绑定了它。我第一次点击一些按钮和模态工作好(通过jquery ajax从控制器返回)。
然后必须动态改变模型的身体,它也很好用(通过jquery Ajax和json)。然后我关闭模态。第二次我点击一些按钮,模态工作,但有问题。问题是模态的主体的滚动条是启用但不工作,就像模态是锁定。这个问题是在chrome中,但在IE中我没有那个。我的模态代码:
I have a bootstrap modal in my asp.net mvc code that it's body bind in runtime. first time I click on the some button and modal work good (body return from controller by jquery ajax).
then must change model’s body dynamically , it works good too(by jquery Ajax and json). then I close modal. second time I click on some button , modal work but with problem . the problem is scrollbar of modal's body is enable but not working , like that the modal is lock . this problem is in chrome , but in IE I have not that. my code for modal :
success: function (response) {
$('#myModal').html(response);
$('#myModal').modal({ show: true, backdrop: false, keyboard: false });
我改变了css:overflow:hidden和position:fix但是它不起作用
I change css : overflow:hidden and position:fix but it's not work
推荐答案
我更改了css:overflow:hidden和position:fix但是它不起作用
I change css : overflow:hidden and position:fix but it's not work
<br />
这篇关于chrome中的bootstrap模态问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!