2 つの iframe が重なり合っています。
- 各 iframe は異なるページを読み込みます。
- iframe 1 はヘッダーです
- iframe 2 はコンテンツです
欲望
- は 1 ページとして動作するため、スクロールするとページ全体がスクロールします
問題
- 一番下のみスクロール
これを行う方法はありますか?
<!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>