Textbox input right to left with minus sign “-” on left

偶尔善良 提交于 2020-01-06 03:28:26

问题


I have a textbox to which I have applied style direction:rtl; since I want to type numbers in it. But when I add a minus sign - in it, it comes ahead of the numbers

I want it to be like the way we see normally

Any help would be appreciated


回答1:


Please add style="text-align:right;" remove direction:rtl; from style




回答2:


the rtl direction property means "right to left", that's why is behaves like that.



来源:https://stackoverflow.com/questions/24507771/textbox-input-right-to-left-with-minus-sign-on-left

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!