Home >Web Front-end >JS Tutorial >Firefox div height adaptive_javascript skills
1. If you want a minimum height for a div, you should use the minheight attribute of CSS, but IE does not support it. Considering that most users use IE, this attribute is generally discarded. In IE, height can basically be used as minheight, because if the content exceeds height, IE will adapt to its height. But once the height is set, FIrefox will not adapt to the height of the div. So I can only use both attributes and simply write