/* 处理移动端上滑的白边 */ 方式1: css html, body { overflow: hidden; height: 100%; } 方式2: css body { position: fixed; top: 0; left: 0; right: 0; }
css html, body { overflow: hidden; height: 100%; }
css body { position: fixed; top: 0; left: 0; right: 0; }