<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.div1{
height: 50px;
background-color: red;
}
.div2{
background-color: blue;
}
.div3{
height: 50px;
background-color: green;
}
</style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</body>
</html>对于div2,如何写其样式使得div1 div2 div3的height和至少能够撑起整个页面。(不要那种写死的)写法应该很多吧?求指导,谢谢。
木柘
刚毅87
随时随地看视频慕课网APP