<万博manbetx平台> box-direction_CSS3属性_CSS参考手册 - 万博manbetx平台中文网
购物车
登陆 / 注册
微信扫码登陆

推荐手册

box-direction

box-direction
box-direction属性指定显示哪个方向的box的子元素。
前端控 前端控 更新时间:2019-03-25 13:47:48

CSS3 box-direction 属性

属性定义及使用说明

box-direction属性指定显示哪个方向的box的子元素。

默认值:normal
继承性:no
版本:CSS3
JavaScript 语法:

object.style.boxDirection="reverse"


浏览器支持

incompatible_chrome.gifincompatible_firefox.gifincompatible_ie.gifincompatible_opera.gifincompatible_safari.gif

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

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

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

Safari和Chrome通过私有属性-WebKit-box-direction属性。

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


语法

box-direction: normal|reverse|inherit;
描述
normal 以默认方向显示子元素。
reverse以反方向显示子元素。
inherit应该从子元素继承 box-direction 属性的值



由右至左,显示一个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;
}

运行实例 »

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

网站导航
标签地图
学习路径
视频教程
开发软件
旗下子站
技术文章
文档工具
关于我们
企业合作
人才招聘
联系我们
讲师招募
QQ交流群
QQ官方交流群
微信公众号
微信公众号