As far as I can tell, these display
selectors seem to be identical.
From the Mozilla CSS documentation:
inline-table
: The inline-table value does not have a direct mapping in HTML. It behaves like a <table>
HTML element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.
inline-block
: The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).
It seems that whatever could be done with inline-table
can be done with inline-block
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…