欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

 

实例

由右至左,显示一个div box的子元素:

div

{

width:350px;

height:100px;

border:1px solid black;

/* Internet Explorer 10 */

display:-ms-flexbox;

-ms-flex-direction:row-reverse;

/* Firefox */

display:-moz-box;

-moz-box-direction:reverse;

/* Safari, Opera, and Chrome */

display:-webkit-box;

-webkit-box-direction:reverse;

/* W3C */

display:box;

box-direction:reverse;

}

目前主流浏览器不支持 box-direction 属性。

Internet Explorer 10通过私有属性 the -ms-flex-direction 支持.

Firefox通过私有属性- MOZ-box-direction支持。

SafariChrome通过私有属性-WebKit-box-direction属性。

注意: Internet Explorer 9及更早IE版本不支持弹性框.

语法

box-direction: normal|reverse|inherit;

normal用以默认方向显示子元素。

reverse用以反方向显示子元素。

inherit应该从子元素继承 box-direction 属性的值

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c39954.shtml