chrome中的bootstrap模态问题 [英] bootstrap modal issue in chrome

查看:110
本文介绍了chrome中的bootstrap模态问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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

推荐答案

('#myModal')。html(response);
('#myModal').html(response);


('#myModal')。modal({show:true,backdrop:false,keyboard:false});
('#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


你的响应是否包含整个模态结构?



原因在这条线上



Does your responce contain the entire modal structure?

Cause on this line

<br />


这篇关于chrome中的bootstrap模态问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆