CSS做可以调整的虚线边框
div {
box-sizing: border-box;
border-top: 1px solid transparent;
background: linear-gradient(white, white) padding-box,
repeating-linear-gradient(
-45deg,
#ccc 0,
#ccc 0.3em,
white 0,
white 0.5em
);
}