Right to left Text HTML input

前端 未结 8 2261
名媛妹妹
名媛妹妹 2020-11-27 18:37

For my website, i need to provide arabic support. Part of it is to provide input textboxes where when user types in, the new characters have to be appended to the left and t

相关标签:
8条回答
  • 2020-11-27 19:41

    Use only direction:RTL and when switched to a proper keyboard (e.g. Arabic) in the system settings, the newly added characters will correctly be appended to the left.

    0 讨论(0)
  • 2020-11-27 19:42

    Simply use this CSS, this will change your text field and cursor position from right to left.

    input, textarea { 
     unicode-bidi:bidi-override; 
     direction: RTL; 
    }
    
    0 讨论(0)
提交回复
热议问题