HTML实现遮罩层的方法 HTML中如何使用遮罩层
<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>
运行结果: 初始化 显示遮罩层和Loading提示 显示遮罩层和模拟弹出模态窗口 (编辑:青岛站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |