css实现全屏遮罩,显示点击放大的图片,并有关闭按钮(x)


.bigPicBox {
position: fixed;
top: -150px;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
padding-bottom: 150px;
.bigPic {
position: relative;
margin: auto;
margin-top: 285px;
z-index: 9999;
width: 900px;
height: 500px;
i {
width: 19px;
height: 19px;
color: #fff;
position: absolute;
top: 15px;
right: 15px;
z-index: 9999;
cursor: pointer;
}
img {
width: 100%;
height: 100%;
}
}
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM