.img1{ height:300px; } #zhezhao{ z-index: 100; background-color: rgb(0, 0, 0); opacity: 0.5; position: fixed; width: 100%; height: 100%; } #zhezhao2{ opacity: 1; z-index: 989; position: absolute; background-color: white; left: 35%; top:22%; }
简单的不要不要的