0
我有2个内部框架一个在另一个之上。两个iFrames一个滚动
- 每个iframe加载一个不同的页面。
- IFRAME 1是头
- IFRAME 2是内容
愿望
- 表现为一个页面,所以当你滚动整个页面滚动
问题
- 只有底部一个卷轴
有没有办法做到这一点?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Untitled</title>
<style type="text/css">
body, html
{
margin: 0; padding: 0;
}
#content
{
position:absolute; left: 0; right: 0; bottom: 0; top: 90px; background: blue; height: expression(document.body.clientHeight-90); overflow:hidden;
}
</style>
</head>
<body>
<iframe src="http://www.example.com" width="100%" height="100" frameborder="0" scrolling="no"></iframe><br />
<div id="content">
<iframe src="http://www.cnn.com" width="100%" height="100%" frameborder="0"></iframe>
</div>
</body>
</html>