<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<style>
html,body{height: 100%;padding: 0;margin: 0;}
.auto { height: 100%; position: relative; }
.A { height: 100px; background: #BBE8F2; }
.b { background: #D9C666; width: 100%; position: absolute; top: 100px ; left: 0 ; bottom: 0; }
</style>
<body>
<div class="auto">
<div class="A"></div>
<div class="b"></div>
</div>
</body>
</html>
最终效果