Thief a strange question, in the class to the left of the div div to don't write the text layout normal, written text layout is messy, add attributes to left div overflow: hidden just normal layout,
CodePudding user response:
The left set is the display: inline - block; The inline - block also belong to the inline elements, Is an inline element will follow the vertical alignment of vertical - align Vertical - align the default value is the baseline: box of baseline and the parent box in the current baseline alignment, if there is no baseline, the box will bottom out away from the boundary and the parent of the baseline alignment Div not write a word, there is no baseline, will bottom out away from the boundary and the parent of the baseline alignment If written text is have a baseline, would be text box baseline aligned with the baseline parent box
You turn. Left is set to vertical - align: top; Let the box at the top of the current and parent box at the top of the alignment,