加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

HTML实现遮罩层的方法 HTML中如何使用遮罩层

发布时间:2020-03-18 13:01:11 所属栏目:MsSql教程 来源:互联网
导读:这篇文章主要为大家详细介绍了HTML实现遮罩层的方法,Web页面中使用遮罩层,可防止重复操作,那么如何在HTML中使用遮罩层?感兴趣的小伙伴们可以参考一下

        <div class='modal-container' style='width: 100%;height: 100%;background-color: white;'>  

            <div style='width: 100%;height: 49px;position: relative;left: 50%;top: 50%;'>  

                <span style='font-size: 36px; width: 100%; text-align:center; display: inline-block; position:inherit; left: -50%;top: -50%;'>模态窗口1</span>  

            </div>  

            <button class='btn-close' style='width: 100px; height: 30px; position: absolute; right: 30px; bottom: 20px;'>关闭</button>  

        </div>  

    </div>  

    <script type='text/javascript' src="js/jquery-1.10.2.js"></script>  

</body>  

</html>  

  

运行结果:

初始化

HTML实现遮罩层的方法 HTML中如何使用遮罩层

显示遮罩层和Loading提示

HTML实现遮罩层的方法 HTML中如何使用遮罩层

显示遮罩层和模拟弹出模态窗口

HTML实现遮罩层的方法 HTML中如何使用遮罩层

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读