-
A div's height depends on its inner elements, in your example, the first input is having a height of 100px, so the div will have at least 100px height, ignoring spacing, boarder, padding.
Setting max-height on the div will hint the rendering engine to limit the height, but doesn't necessarily work all the time.
I'd suggest you changing the input's height first:
- 热议问题