Wrapping character “Y” in span, increases the margin to next character

前端 未结 3 1184
北海茫月
北海茫月 2021-01-18 00:10

In my current project, I need to wrap every single character of a sentence within a span, so I can measure the distance from the beginning of the sentence up until the chara

3条回答
  •  有刺的猬
    2021-01-18 00:42

    Any mono-spaced font may help as each character is the same width.

    You could also try this:
    https://css-tricks.com/forums/topic/characterletter-widths-in-css/

提交回复
热议问题