gpt4 book ai didi

jquery - div 中的主页,不适用于 IE

转载 作者:行者123 更新时间:2023-11-28 13:18:56 24 4
gpt4 key购买 nike

你好

我想在 div 标签中显示主页。这是一个小代码,适用于浏览器 Firefox、Chrome、Opera,但在 Internet Explorer 中不起作用。有任何提示吗?

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://localhost/myproj/jquery-1.9.0.min.js"></script>
<style>
body {
background-color: lightsalmon;
}
.inner_homepage_div {
position: fixed;
top : 100px;
left : 0px;
width: 100%;
z-index:10;
}
</style>
<title></title>
</head>
<body>
<script type="text/javascript">
(function($) {
$(document).ready(function() {
function fHeight() {
$('#inner_page').height($(window).height()-125);
$('#hpage').css({
'width': '100%',
'height': '100%'
});
}
$('#inner_page').html('<object id="hpage" data="http://www.ee" />');
fHeight();
fHeight();
$(window).resize(fHeight);
});//
})(jQuery);
</script>
<div id="inner_page" class="inner_homepage_div"></div>
</body>
</html>

谢谢

最佳答案

所以我们知道,什么是http://www.ee ?它丢失了..位你真的得到了什么吗?如果是这样呢? (会作为评论发布,但堆栈喜欢让你有 50 个代表)

关于jquery - div 中的主页,不适用于 IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14812285/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com