li{
    width: 100%;
    height: 3px;
    background-image: linear-gradient(to right, #009a61 0%, #009a61 50%, transparent 50%);
    background-size: 30px 3px;
    background-repeat: repeat-x;
}

  

效果:自定义border 为 dashed 时的虚线间距

 

相关文章:

  • 2021-12-12
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案