Html 显示文档:-webkit-inline-box;
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21732651/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
documentation on display: -webkit-inline-box;
提问by fauverism
I'd love to find out more details about the -webkit-inline-box property but I can't seem to find anything anywhere. I tried the normal channels of w3c, google, css-tricks bug I'm not coming up with anything. I'm thinking that it's old inherited code from flexbox.
我很想了解有关 -webkit-inline-box 属性的更多详细信息,但我似乎在任何地方都找不到任何东西。我尝试了 w3c、google、css-tricks 的正常渠道,但我没有想出任何办法。我认为它是从 flexbox 继承的旧代码。
Does anyone know the details of...
有谁知道详情...
display: -webkit-inline-box;
?
?
采纳答案by BoltClock
I'm thinking that it's old inherited code from flexbox.
我认为它是从 flexbox 继承的旧代码。
You're correct.
你是对的。
Flexible boxes, defined by display: box
and display: inline-box
respectively, were old incarnations of what are now known as flex containers (display: flex
and display: inline-flex
).
分别由display: box
和定义的弹性盒子display: inline-box
是现在被称为弹性容器(display: flex
和display: inline-flex
)的旧版本。
They are described in this version of the Flexbox spec, but it doesn't say anything about these two display
values other than
他们在这个版本的 Flexbox 规范中有描述,但display
除了
In CSS, flexible boxes (often referred to only as boxes in this specification) may be created by setting the ‘display' property. A block-level box can be specified with a value of ‘box' and an inline box can be specified using a value of inline-box.
在 CSS 中,可以通过设置 'display' 属性来创建灵活的框(在本规范中通常仅称为框)。块级框可以指定为 'box' 值,内联框可以使用 inline-box 值指定。
Everything else is described by the box-*
properties in the rest of that document.
其他所有内容都由该box-*
文档其余部分中的属性描述。
Implementations and production sites still exist that use the old flexbox code, but it goes without saying that you should never have to use them today. Focus on writing CSS according to the latest Flexbox spec, which enjoys reasonable support by modern browsersand is on track for standardization.
使用旧的 flexbox 代码的实现和生产站点仍然存在,但不用说,您今天永远不必使用它们。专注于根据最新的 Flexbox 规范编写 CSS,该规范受到现代浏览器的合理支持,并有望实现标准化。