css简单画出网格背景

.grid-background {
    background: #000000;
    background-image: linear-gradient(to bottom, #061e2b 0, #0f2937 1px, transparent 1px), linear-gradient(to right, #0f2937 0, #0f2937 1px, transparent 1px);
    background-size: 25px 25px;
    background-repeat: repeat;
}
image.png

你可能感兴趣的:(css简单画出网格背景)