<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>42度空间-网格布局之网格项目的对齐方式测试6</title>
    <style>
        .grid {
            display: grid;
            grid-template-rows: 80px 80px;
            grid-template-columns: 1fr 1fr;
            grid-template-areas: "content content"
            "content content";
            align-items: center;
           border: 1px solid #ccc;
        }
        .item {
            grid-area: content;
            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;
        }
        body {
            font-family: -apple-system,BlinkMacSystemFont,SFNSDisplay-Regular,Roboto,Helvetica,Arial,sans-serif;
            line-height: 1.15;
        }
    </style>
</head>
<body>
<div class="grid">
    <div class="item">1</div >
</div>
</body>
</html>