实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS3 box-direction 属性 实例 - 自学教程(runoops.com)</title> <style> div { width: 350px; height: 100px; border: 1px solid black; /* Internet Explorer 10 */ display: -ms-flexbox; -ms-flex-direction: 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; } </style> </head> <body> <div> <p>Cat</p> <p>Dog</p> <p>Horse</p> </div> <p><b>注意:</b> Flexible boxes 在 IE 9和更早版本的浏览器中不兼容</p> </body> </html>
运行结果: