除了查询条件区域外,下面的工作区域高度100%的代码

<style>
    html {
        height: 100%;
        padding: 0px;
    }
    body {
        height: 100%;
        padding: 0px;
    }
    .main {
        padding-top:50px;
        height: 100%;
        box-sizing: border-box;
    }
    .top {
        height: 50px;
        text-align: right;
        padding-right: 25px;
        padding-top: 10px;
        margin-top:-50px;
    }
    .bottom {
        height: 100%;
        box-sizing: border-box;
    }
</style>
<div class="main">
    <div class="top">
        <button id="btnAdd">新增</button>
        <hr />
    </div>
    <div class="bottom">
        <div id="grid"></div>
    </div>
</div>
原文地址:https://www.cnblogs.com/wjx-blog/p/14506672.html