您当前的位置: 首页 > 

梁云亮

暂无认证

  • 2浏览

    0关注

    1211博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

网页:单击按钮弹出悬浮窗+页面遮罩

梁云亮 发布时间:2019-11-18 16:20:05 ,浏览量:2

网页:单击按钮弹出悬浮窗+页面遮罩
  • 效果: 在这里插入图片描述
  • 页面代码:

    
    
        
        
            .black_overlay{
                display: none;
                position: absolute;
                top: 0%;
                left: 0%;
                width: 100%;
                height: 100%;
                background-color: #c8c8c8;
                z-index:1001;
                -moz-opacity: 0.8;
                opacity:.80;
                filter: alpha(opacity=78);
            }
            .pop_win {
                display: none;
                position: absolute;
                top: 10%;
                left: 23%;
                width: 55%;
                height: 75%;
                padding: 10px;
                border: 2px solid rebeccapurple;
                background-color: white;
                z-index:9999;
                overflow: auto;
            }
        
        
            function popWin(){
                document.getElementById('light').style.display='block';
                document.getElementById('fade').style.display='block'
            }
    
            function closeWin() {
                document.getElementById('light').style.display = 'none';
                document.getElementById('fade').style.display = 'none'
            }
        
    
    
        网页:单击按钮弹出悬浮窗+页面遮罩
        请点这里
    
        
            [x]
        
        
    

关注
打赏
1665409997
查看更多评论
立即登录/注册

微信扫码登录

0.0632s