How to get a tab character?

后端 未结 7 1666
有刺的猬
有刺的猬 2020-11-29 22:49

In HTML, there is no character for a tab, but I am confused as to why I can copy and paste one here: . (You can\'t see the full width of it, but if you click to edit my q

7条回答
  •  一向
    一向 (楼主)
    2020-11-29 23:22

    Try

    as per the docs :

    The character entities and denote an en space and an em space respectively, where an en space is half the point size and an em space is equal to the point size of the current font. For fixed pitch fonts, the user agent can treat the en space as being equivalent to A space character, and the em space as being equuivalent to two space characters.

    Docs link : https://www.w3.org/MarkUp/html3/specialchars.html

提交回复
热议问题