2

效果

image.png

CSS

.grid {

  width: 500px;

  height: 500px;

  background-image: linear-gradient(

    45deg,

    #eeeeee 25%,

    transparent 25%,

    transparent 75%,

    #eeeeee 75%

  ), linear-gradient(

    45deg,

    #eeeeee 25%,

    transparent 25%,

    transparent 75%,

    #eeeeee 75%

  );

  background-size: 50px 50px;

  background-position: 0 0, 25px 25px;

}

后脑勺
23 声望1 粉丝

一只有追求、有梦想、喜欢写出漂亮代码的程序猿儿