height: 100%在fixed元素上失效是因为其相对于初始包含块计算且受父容器和定位上下文干扰;应改用top: 0 + bottom: 0填满视口,并设置overflow-y: auto确保滚动。 为什么 posi...