Direction ltr in a rtl HTML page

前端 未结 3 2058
梦谈多话
梦谈多话 2021-02-14 02:01

I am trying to display a negative number in a rtl HTML page.

The label doesn\'t seem to respond to my direction: ltr

I have written a jsFiddle to di

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-14 02:49

    In addition to Henrik's answer , I would add a LRM control character before the minus sign like so:

    ​​​​​​​​​​​​​​​​​​​​​​
    

    This way the minus sign gets placed before the 9 (which is probably what you want)

    This microsoft doc explains the LRM control character along with other control characters.

提交回复
热议问题