Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
708 views
in Technique[技术] by (71.8m points)

html - documentation on display: -webkit-inline-box;

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.

Does anyone know the details of...

display: -webkit-inline-box;

?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I'm thinking that it's old inherited code from 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).

They are described in this version of the Flexbox spec, but it doesn't say anything about these two display values other than

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.

Everything else is described by the box-* properties in the rest of that document.

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 browsers and is on track for standardization.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...