<div class="showView"></div> /* 遮罩层 */ .showView{ position: absolute; width: 100%; height: 100%; top: 0rpx; left: 0rpx; background-color: thistle; opacity: 1; }