主页面中嵌套了一个iframe,代码如下:
<div id = "toolbar" style="position: absolute;z-index:0;height:28px;width:500px;display:block;right:0px">
<iframe id="toolbarIframe" src="iframe/toolBar.html" scrolling ="no" frameborder="0" style="z-index:3;width:86%;height:100%;top:0px;right:0px" ></iframe>
</div>
单独请求子页面是好的,请求主页面时却显示不了,请求大神解决!!!
ps:主页面是以IFrame形式嵌套在flex页面下的。
f12调出开发工具看下iframe里面的dom结构是否有内容,height:100%改为height:28px试试
我记得ie8好像不能打开控制台,如果是兼容性问题可以添加这个:
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
试试
大家不用谢我,快拿去用!
<html style="position:relative">
<head></head>
<body>
<iframe src="https://ask.csdn.net/questions/229629"></iframe>
</body>
</html>