<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>42度空间-网格布局之层叠网格项目测试2</title>
    <style>
        .container{
            display: grid;
            grid-template-areas:   "header header"
                        "content sidebar"
                        "footer footer";
            grid-template-rows:    150px 1fr 100px;
            grid-template-columns: 1fr 100px;
        }
        .item {
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #fff;
            border-radius: .2rem;
            font-size: .8em;
            min-height: 3rem;
            padding: .75rem;
            color: #f0f0f3;
            background-color: #e91e63;
        }
        header {
            grid-area:header;
        }
        main {
            grid-area:content;
        }
        aside {
            grid-area:sidebar;
        }
        footer {
            grid-area:footer;
        }
        .overlay {
            grid-row-start:    header-start;
            grid-row-end:      content-end;
           grid-column-start: content-start;
           grid-column-end:   sidebar-start;
           background-color: rgba(0,150,136,.75);
           z-index: 1;
        }
        body {
            font-family: -apple-system,BlinkMacSystemFont,SFNSDisplay-Regular,Roboto,Helvetica,Arial,sans-serif;
            line-height: 1.15;
        }
    </style>
</head>
<body>
<div class="container">
    <header class="item">header</header>
    <main class="item">content</main>
    <aside class="item">sidebar</aside>
    <footer class="item">footer</footer>
   <div class="item overlay">overlay</div>
</div>
</body>
</html>