其他分享
首页 > 其他分享> > CSS3绘制方格背景图类似于ProcessOn 绘制面板

CSS3绘制方格背景图类似于ProcessOn 绘制面板

作者:互联网

效果图:

在这里插入图片描述

<div class="canvas">中心画布</div>
.canvas {
  border: 1px solid #f2f2f2;
  background: -webkit-linear-gradient(
    top,
    transparent 15px,
    #f2f2f2 15px,
    #f2f2f2 16px,
    transparent 16px,
    transparent 31px,
    #f2f2f2 31px,
    #f2f2f2 32px,
    transparent 32px,
    transparent 47px,
    #f2f2f2 47px,
    #f2f2f2 48px,
    transparent 48px,
    transparent 63px,
    #e5e5e5 63px,
    #e5e5e5 63px
  ),
  -webkit-linear-gradient(
    left,
    transparent 15px,
    #f2f2f2 15px,
    #f2f2f2 16px,
    transparent 16px,
    transparent 31px,
    #f2f2f2 31px,
    #f2f2f2 32px,
    transparent 32px,
    transparent 47px,
    #f2f2f2 47px,
    #f2f2f2 48px,
    transparent 48px,
    transparent 63px,
    #e5e5e5 63px,
    #e5e5e5 63px
  );
  background-size: 64px 64px;
  background-repeat: repeat;
}

标签:CSS3,ProcessOn,31px,f2f2f2,47px,63px,e5e5e5,绘制,transparent
来源: https://blog.csdn.net/hefeng6500/article/details/121054616