没啥可讲的直接上代码吧。
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>iframe嵌套</title>
</head>
<style>
body{
padding: 0; margin: 0;
}
.top{
width:100%;height:64px;
background:#000;
position:absolute;
z-index:999;
}
.iframeCss{
position:relative;
width:100%;
height:3000px;
top:-60px;
z-index: 0;
overflow: visible;
}
</style>
<body>
<div class="top" >
</div>
<!-- built files will be auto injected -->
<iframe class="iframeCss"
ref="iframe"
src="http://www.**********.com"
width="100%"
height="3000"
scrolling="no"
frameBorder="0"
title="title">
</iframe>
</body>
</html>
这里的iframe主要通过绝对定位实现的,意思就是 position:relative; top:-60px; 哈哈搞笑吧~.