[英]Bootstrap modal target content not showing in modal body in
I am using jquery 1.8.3 and Bootstrap v2.3.2. 我正在使用jquery 1.8.3和Bootstrap v2.3.2。
Issue is that content from target url is not showing in model-body. 问题是目标网址中的内容未显示在模型主体中。 This works fine in all browser except IE8.
这在除IE8之外的所有浏览器中都可以正常工作。
Below is my code 下面是我的代码
jquery jQuery的
$(document).on('click', '.myModal', function (e) {
e.preventDefault();
var target = $(this).attr("href");
var title = $(this).attr("title");
$("#myModal .modal-body").html('Loading ........');
$("#myModal").modal("show");
$("#myModal .modal-body").load(target, function () {
});
});
HTML HTML
<a href='http://test/test.php' class='myModal' title='Car page'>Pop up </a>
Just add this meta tag to your header and try again ; 只需将此meta标签添加到标题中,然后重试即可;
<meta http-equiv="X-UA-Compatible" content="IE=8"></meta>
if it doesn't work try this ; 如果不行,试试这个;
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.