Skip to content

题目 76


css
.container {
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.box {
    background-color: #999;
    box-sizing: border-box;
}

/* 请在此处编写代码 */
html
<body>
    <div class="container">
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
    </div>
</body>

题目:请利用伪类选择器实现一个功能,将每一行末尾的盒子颜色设置为 #5cd8a2

答题文件: 76.html

更新时间: