Firefox ignoring min-height in CSS
问题 For some reason, min-height is not working on Firefox. I tried setting min-height on the body, but Firefox totally ignored it. Since my page is dynamic, I cannot just set the height to 100%. What should I do? body { border: 1px solid black; width: 100%; min-height: 100%; } <body> This is the body. </body> 回答1: height percentages are inherited (that includes min-height and max-height, too). From the CSS spec: Specifies a percentage for determining the used value. The percentage is calculated