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