zhengchao40312018 2016-05-18 02:11 采纳率: 0%
浏览 2506

jquery dialog iframe在IE11.0.31中不能正常加载的现象,请分析一下原因

代码如下

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0171)http://localhost:8080/portal/dynaform/document/view.action -->
<html>
<head>
<meta content="IE=5.0000" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<script type="text/javascript" src="jquery-ui/js/jquery-1.4.4.min.js"></script>

<link type="text/css" href="jquery-ui/css/smoothness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
<script type="text/javascript" src="jquery-ui/js/jquery-ui-1.8.10.custom.min.js"></script>


</head>
<body>
<div><a href="javascript:void(0);" onclick="javascript:testAppendTo();">测试AppendTo</a></div>
</body>

<script type="text/javascript">
function testAppendTo() {
    $('<div>111</div>')
    .append('<iframe src="dialog_page.html" frameborder="0" width="500" height="300" >')
    .appendTo(document.body)
    .dialog()
    ;
}
</script>
</html>

其中在IE11.0.30版本中,是可以显示iframe的内容的
但当windows更新后,IE升级到11.0.31(KB3154070)后就不行了,
后来,将.appendTo(document.body)不要就可以了,在此主要是想请请教高手分析一下这种现象出现的原因.

  • 写回答

3条回答 默认 最新

  • zhengchao40312018 2016-05-18 02:12
    关注

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">





    function testAppendTo() { $('<div>111</div>') .append('<iframe src="dialog_page.html" frameborder="0" width="500" height="300" >') .appendTo(document.body) .dialog() ; }

    
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog