Home > front end >  Div nested problem
Div nested problem

Time:02-09

Div nested in three div, 3 div beyond why parent div is vertically, rather than the horizontal row

CodePudding user response:

Here is not beyond, div is a block element, a line automatically, can be you of the three small circle of the div style, display: inline - block; So it becomes the inline block elements, the default sort for from left to right

CodePudding user response:

Block-level elements, an exclusive line

CodePudding user response:

reference 1st floor JiexC0la response:
this is not a content beyond, div is a block element, a line automatically, can add you the three small circle of div style, display: inline - block; So it becomes the inline block elements, the default sort for from left to right
understand, thank you

CodePudding user response:

refer to the second floor Pray_for_xi response:
block-level elements, an exclusive line of
thank you

CodePudding user response:

Div will automatically wrap, span non-breaking
Solve the problem of div line feed, use the display: inner block to limit
  • Related