0
我正在构建一个新的博客,它在内容div中包含注释部分。目前,我已经为下面给出的正文,标题,导航,内容和页脚设置了我的CSS。展开页面设置html和css
内容div将根据正在撰写的评论数量进行扩展。如何设置内容div的css/html,以便在更多的评论数量(例如: - 200)时页面将自动展开。现在,我已经设置了宽度和高度为100%
html, body {
height: 100%;
width: 100%;
}
#header {
background-color:red;
height:10%;
margin-bottom:1%;
}
#naigator {
background-color:red;
height:5%;
margin-bottom:1%;
}
#content {
background-color:red;
height:75%;
margin-bottom:1%;
}
#footer {
background-color:red;
height:10%
}
请提供你是什么的图像或视频试图实现。 – Zaqx 2014-12-11 04:29:58
不要在内容元素上定义高度,以便根据内容元素的内容自动展开。另外,如果你想要冗长,你可以设置'height:auto;'。 – Sgnl 2014-12-11 04:56:26