By default, text runs from left-to-right in web pages, as all Indo-European languages are written in this direction. However Arabic, Hebrew, Urdu and several other languages are written in the opposite direction, i.e. right-to-left. Getting the text itself onto the page is not a particular issue, but forming it to run in the right direction can be.
默认情况下,文本在网页中从左到右运行,因为所有印欧语系都以此方向编写。 但是,阿拉伯语,希伯来语,乌尔都语和其他几种语言是相反的方向,即从右到左。 将文本本身放到页面上并不是一个特殊的问题,但是可以使其形成正确的方向。
第一步:设置文字方向 (Step One: Set The Direction Of The Text)
The base direction of text in a web page is determined by the dir
attribute in the <html>
tag. dir
by default is set to “ltr”
(left to right), and does not need to be explicitly declared. To set the opposite direction, we s