【发布时间】:2010-10-25 06:32:21
【问题描述】:
我有点卡住了,这是因为我对 html/css 和 iframe 缺乏经验。
基本上,我有一个 LH 列,这是我的菜单。还有一个 RH 专栏,里面是我的内容。 RH 列是 iframe。
问题是我无法让 iframe 的高度等于 100%,它受到 LH 列高度的限制。
见下文; http://www.therussianfrostfarmers.com/
这让我发疯了,它看起来很容易修复。
这是相关html的一部分;
<div id='wrapper'>
<div id='header'>
<img src="images/titleBart.gif" alt="rff"/>
</div>
<div id='menu'>
<div class='container'>
<%obj_itop%>
<plug:front_index />
<%obj_ibot%>
</div>
</div>
<div id='content'>
<!-- text and image -->
<plug:front_exhibit />
<!-- end text and image -->
</div>
<div class='clear-both'>
<!-- -->
</div>
</div>
以及相应的CSS;
#wrapper {
margin: 0 auto;
width:950px;
text-align: left;
background: #fff;
height:100% !important;
}
.clear-both { clear: both; }
#content {
width: 760px;
margin: 20px 0 0 190px;
padding:0;
height: 100% !important;
overflow: auto;
}
#menu {
width: 170px;
position:absolute;
margin:0;
padding:0;
overflow: auto;
}
.container {
margin:0;
padding:0;
}
任何帮助将不胜感激,
感谢卡
【问题讨论】: