Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将框架集转换为css_Css_Html_Frameset - Fatal编程技术网

将框架集转换为css

将框架集转换为css,css,html,frameset,Css,Html,Frameset,我正在尝试基于此旧框架集构建CSS页面布局: <frameset cols="30%,70%"> <frame>left</frame> <frameset rows="80%,20%"> <frame>top</frame> <frame>bottom</frame> </frameset> </frameset> 我

我正在尝试基于此旧框架集构建CSS页面布局:

<frameset cols="30%,70%">
    <frame>left</frame>
    <frameset rows="80%,20%">
        <frame>top</frame>
        <frame>bottom</frame>
    </frameset>
</frameset>
我放了一个演示

到目前为止,我想要实现但失败的是:
#bottom
的高度应该是某个像素高度,而不是百分比。当我这样做时,我会把
#top
搞砸。我试着用绝对位置将
#bottom
粘在底部,但我不知道如何让
#top
使用剩余的高度

任何想法都将不胜感激。谢谢。

我想你在找什么

#top {
    border: 1px solid red;
    height: 80%;
    overflow-y: scroll;
}

#bottom {
    bottom:0;
    border: 1px solid red;
    height: 20%;
}
这些div看起来不太合适,但这只是因为边界。如果需要边框,则可以使用css框大小属性并将其设置为border box。请参阅以供参考。基本上,它使元素的大小包含默认情况下不包含的边框。

我认为您在寻找什么

#top {
    border: 1px solid red;
    height: 80%;
    overflow-y: scroll;
}

#bottom {
    bottom:0;
    border: 1px solid red;
    height: 20%;
}
这些div看起来不太合适,但这只是因为边界。如果需要边框,则可以使用css框大小属性并将其设置为border box。请参阅以供参考。基本上,它使元素的大小包含默认情况下不包含的边框

#top {
    border: 1px solid red;
    height: 80%;
    overflow-y: scroll;
}

#bottom {
    bottom:0;
    border: 1px solid red;
    height: 20%;
}