还有一个稍微复杂点的版本,这个需要全局注册才行
div{background:
radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent),
radial-gradient(circle at 0% 50%, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent) 0 -50px
background-color: slategray
background-size:75px 100px
}
更多背景底纹私聊我给你网址,有好多