Why is a trailing punctuation mark rendered at the start with direction:rtl?

后端 未结 4 1795
有刺的猬
有刺的猬 2020-11-29 09:27

This is more a sort of curiosity. While working on a multilingual web application I noticed that certain characters like punctuation marks (!?.;,) at the end of a block elem

4条回答
  •  青春惊慌失措
    2020-11-29 10:02

    If you want to fix this behavior add the LRM character in the end. It's a non=printing character.

    Source : http://dotancohen.com/howto/rtl_right_to_left.html

    Example : http://jsfiddle.net/yobjj6ed/

提交回复
热议问题