页面滚动 .top { position: fixed; top: 0; left: 0; right: 0; } ul { /* 外边距top高度 防止固定定位遮挡内容 */ margin-top: 98px; } 局部滚动 ul { height: calc(100vh - 98px); overflow: auto; }