Home > front end >  HTML based small white problem
HTML based small white problem

Time:04-26

Bosses look it, why can't put the search box in the navigation bar!!!!!!!!!!

CodePudding user response:

Display the default value of the div is block, namely an exclusive line block

You this either add width, at the same time, the display is modified to the inline - block, either parent set display: flex, or set the float

CodePudding user response:

Div is block-level, bring their own branch

CodePudding user response:

Block, the inline - block, what are these few inline elements, each have what performance, all need to know to just go

CodePudding user response:

reference 1/f, illiterate old gu response:
div display the default value is block, namely the exclusive line

You this either add width, at the same time, the display is modified to the inline - block, either parent set display: flex, or set up float

Thank you very much!!!!!!!!!!!!!!!!!!!

CodePudding user response:

refer to the second floor of seven of the world, I'll take ninety-nine response:
div is block-level, bring their own branch

Thank you very much!!!!!!!!!!!!!!!!!!!

CodePudding user response:

reference gqkmiss reply: 3/f
block and inline - block, what are these few inline elements, all have what performance, need to know to just go.

Thank you very much!!!!!!!!!!!!!!!
  • Related