1. 首先通过这种布局设置一个占用全屏的元素 position: fixed; top: 0; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 500px; // 手机可能有最大宽度,可加可不加