元素铺满全屏 元素铺满全屏让元素的宽度和高度刚好铺满整个屏幕 <div class="full"></div> html,body{ margin: 0; /*消除默认留白*/ padding: 0; }.full{ position: absolute; width: 100%; height: 100%; background: salmon;}