[CSS]给页面加网格

今天看到掘金,发现背景带网格好像挺好看,嫖了

源代码

background-image: linear-gradient(90deg,rgba(50,0,0,.05) 3%,transparent 0),linear-gradient(1turn,rgba(50,0,0,.05) 3%,transparent 0);
background-size: 20px 20px;
background-position: 50%;