unicode

UK['ju:n??k??d] US['j?n??ko?d]

Unicode (using double bytes to encode characters)

bidi

UK[b?'d?] US[b?'d?]

n. A cigar with sharp ends produced in India

css unicode-bidi attribute syntax

Function: unicode-bidi attribute sets the direction of text. Inheritance: Yes

Description: Although CSS attempts to handle writing direction, Unicode has a more robust way to handle directionality. The unicode-bidi property allows CSS authors to take advantage of some of Unicode's capabilities.

css unicode-bidi attribute example

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title></title>
<style>
div.ex1
{
	direction:rtl;
	unicode-bidi:bidi-override;
}
</style>
</head>
<body>

<div>一些文本。默認(rèn)的書寫方向。</div>
<div class="ex1">一些文本 。從右向左的方向。</div>

</body>
</html>

Run instance ?

Click the "Run instance" button to view the online instance