opensource-f2f / website

《开源面对面》官网
https://osf2f.net
Apache License 2.0
45 stars 14 forks source link

可以通过渐变来控制 虚线边框的长度和间隔 #20

Closed lucyanddarlin closed 2 years ago

lucyanddarlin commented 2 years ago
.border-box{ 
  border: 1px solid transparent;
  background: linear-gradient(white, white) padding-box,
  repeating-linear-gradient(-45deg, #ccc 0, #ccc 0.5em, white 0, white 0.75em);
}