方向(LTR / RTL):CSS方向和HTML方向属性有什么区别?

那么这有什么区别呢?
<body dir="rtl">

和这个?:

<body style="direction:rtl">

解决方法

< body dir =“rtl”>根据W3C的建议更为合适:

http://www.w3.org/International/questions/qa-bidi-css-markup

Because directionality is an integral part of the document structure,markup should be used to set the directionality for a document or chunk of information,or to identify places in the text where the Unicode bidirectional algorithm alone is insufficient to achieve desired directionality. […] You should therefore use dedicated bidi markup whenever it is available. Do not simply attach CSS styling to a general element to achieve the effect.

忽略CSS的用户代理也将受益于此方法.

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效