一、HTML代码如下:
img class="comment_pics" width="50px" height="50px" src="img/01.jpg"/>
div class="bg">
img class="bgImg" style="max-width: 100%; max-height: 100%; position: fixed;" src="">
div>
二、CSS代码如下:
.fillbg { background-color: rgba(0, 0, 0, 0.6); bottom: 0; height: 100%; left: 0; opacity: 0; position: fixed; right: 0; top: 0; width: 100%; z-index: 1100; display:none; } .fillbg-active { opacity: 1; display:block; }
三、jQuery代码如下:
参与评论
手机查看
返回顶部