direction

英 [dəˈrekʃn]   美 [dɪˈrɛkʃən, daɪ-]  

n.方向;趋势;方面;用法说明

css direction属性 语法

作用:direction 属性规定文本的方向 / 书写方向。

说明:该属性指定了块的基本书写方向,以及针对 Unicode 双向算法的嵌入和覆盖方向。不支持双向文本的用户代理可以忽略这个属性。 

注释:所有浏览器都支持 direction 属性。任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit"。

css direction属性 示例

<html>
<head>
<style type="text/css">
div.one
{
direction: rtl
}
div.two
{
direction: ltr
}
</style>
</head>
<body>
<div class="one">Some text. Right-to-left direction.</div>
<div class="two">Some text. Left-to-right direction.</div>
</body>
</html>
运行实例 »

点击 "运行实例" 按钮查看在线实例

热门推荐