<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="gbk">
<title>获取content高度</title>
<style>
*{color:#fff}
.header{
height: 40px;
width:100%;
position: fixed;
top:0;
left:0;
background-color: #006e54;
}
.footer{
height: 40px;
width:100%;
position: fixed;
bottom:0;
left:0;
background-color: #00a381;
}
#aside{
position: absolute;
margin:0;
left: 0;
top:40px;
bottom:40px;
width:100px;
background-color: #5c9291;
}
#content{
position: absolute;
margin:0;
left:100px;
top:40px;
bottom:40px;
background-color:#1f3134;
overflow: auto;
}
</style>
</head>
<body>
<div class="header">
header
</div>
<div id="aside">
aside
</div>
<div id="content">
content content content content content content con
HTML/CSS中,DIV高度自适应解决办法
最新推荐文章于 2024-05-03 02:10:24 发布