📝 代码查看
使用runcode.html页面

1
查看次数
2025-11-10
创建时间
2025-11-10
最后更新
<div class="dottedBorder"></div>
body {
  background: #fff;
}

.dottedBorder {
  width: 600px;
  height: 150px;
  padding: 1em;
  border: 1px dashed transparent;
  background: linear-gradient(white, white) padding-box,
    repeating-linear-gradient(-45deg, #ccc 0, #ccc 0.25em, white 0, white 0.75em);
}
暂无JavaScript代码

👁️ 实时预览