Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $YECBGYFECGEAFWHA as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2

Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $BBWFDDBHHYHDXXAB as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2
css box-orient属性怎么用_创想鸟

css box-orient属性怎么用

css box-orient属性用于指定box(框)的子元素是否应按水平或垂直排列。水平框中的子元素从左向右进行显示,而垂直框的子元素从上向下进行显示。

css box-orient属性怎么用

css box-orient属性怎么用?

box-orient属性规定框的子元素是否应水平或垂直排列。

语法:

box-orient: horizontal|vertical|inline-axis|block-axis|inherit;

属性值:

立即学习“前端免费学习笔记(深入)”;

horizontal:在水平行中从左向右排列子元素。

vertical:从上向下垂直排列子元素。

inline-axis:沿着行内轴来排列子元素(映射为 horizontal)。

block-axis:沿着块轴来排列子元素(映射为 vertical)。

inherit:应该从父元素继承 box-orient 属性的值。    

说明:水平框中的子元素从左向右进行显示,而垂直框的子元素从上向下进行显示。不过,box-direction 和 box-ordinal-group 能够改变这种顺序。

注:目前所有主流浏览器都不支持box-orient属性。Firefox通过私有属性- MOZ-box-orient支持。Safari, Opera, 和 Chrome通过私有属性 -webkit-box-orient 支持。

css box-orient属性 示例

div {width: 350px;height: 150px;border: 1px solid black;/* Firefox */display: -moz-box;-moz-box-orient: horizontal;/* Safari, Opera, and Chrome */display: -webkit-box;-webkit-box-orient: horizontal;/* W3C */display: box;box-orient: horizontal;}

段落 1。

段落 2。

段落 3。

注释:IE 不支持 box-orient 属性。

以上就是css box-orient属性怎么用的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1614660.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
css list-style属性怎么用
上一篇 2025年12月24日 04:28:08
css clear属性怎么用
下一篇 2025年12月24日 04:28:24

相关推荐

发表回复

登录后才能评论
关注微信