Making every character on a web page the same width

前端 未结 7 1339
面向向阳花
面向向阳花 2020-12-05 17:43

Is there a font or CSS property that would give every character the same width without the need of drawing them yourself(.ttf)?

7条回答
  •  孤街浪徒
    2020-12-05 18:08

    Another option would be to use lettering.js, which would create a span element around each letter that you could then set a width to with css. This would probably only be advisable for small texts, though.

提交回复
热议问题