Displays a series of short square-ended dashes or line segments. The exact size and length of the segments are not defined by the specification and are implementation-specific.
——MDN
囧, it seems there is no solution. But you can use pictures as borders.
If you must do this, using a background image is also an option. Just cut a small piece to repeat, and the compatibility is very good. But if it is a vertical border, it is a little more troublesome.
——MDN
囧, it seems there is no solution. But you can use pictures as borders.
No way.
But SVG lines can set the spacing.
If you must do this, using a background image is also an option. Just cut a small piece to repeat, and the compatibility is very good. But if it is a vertical border, it is a little more troublesome.