Right to left language support in php

孤人 提交于 2019-12-01 04:32:33

问题


I am developing a site where people will put their comments, in arabic. my website is built in php. does any body know a way how to add right-to- left language support to write text in english?


回答1:


Try specifying <html dir="rtl"> in your markup.

I would read: http://www.w3.org/International/tutorials/bidi-xhtml/

If for some reason you need left to right on a certain element, just specify the dir attribute on it: <div dir="ltr"></div>




回答2:


I had similar problem obtained even I try rtl in textarea where from I was sending my arabic data into database finally it solved when I also apply rtl at the div where I was calling data to print at that div. So use rtl at both sides one where data is sending into database and second where data is retrieving to print.



来源:https://stackoverflow.com/questions/3077895/right-to-left-language-support-in-php

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