css设置整个背景为网格

.container{
  min-height: 100vh;
  background-image: linear-gradient(90deg, rgba(180, 180, 180, 0.15) 10%, rgba(0, 0, 0, 0) 10%),
  linear-gradient(rgba(180, 180, 180, 0.15) 10%, rgba(0, 0, 0, 0) 10%); 
  background-size: 10px 10px;
}

 

posted @ 2023-03-15 09:22  小那  阅读(159)  评论(0编辑  收藏  举报