php 中从右到左的语言支持 [英] Right to left language support in php

查看:21
本文介绍了php 中从右到左的语言支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,人们可以用阿拉伯语发表评论.我的网站是用 php 构建的.有没有人知道如何添加从右到左的语言支持以用英语书写文本?

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?

推荐答案

尝试在标记中指定 .

我会读:http://www.w3.org/International/tutorials/bidi-xhtml/

如果由于某种原因您需要在某个元素上从左到右,只需在其上指定 dir 属性:<div dir="ltr"></div>

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

这篇关于php 中从右到左的语言支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆