博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
实现页面弹框背景虚化效果
阅读量:4652 次
发布时间:2019-06-09

本文共 761 字,大约阅读时间需要 2 分钟。

实现效果类似alert效果

 

<style type="text/css">

#mask {

    background: #000;

    opacity: 0.6;

    position: fixed;

    z-index: 9999;

    top: 0;

    left: 0;

}

</style>

 

<script type="text/javascript">

function test(){

mask();//弹框之前用div遮盖

crm2Win2 = window.$.dicWin({

drag : true, //能否拖动窗口

closable : false,

title : '超时校验',

width : '500px',

height : '300px',

url : ctx +'/common/autoLockValid.jsp?EMPACCT=${LOGON_EMPEE.EMPEE_ACCT}&LATNID=${LOGON_EMPEE.LATN_ID}&USERID=${LOGON_EMPEE.USER_ID}&jtCrmSSOLogoutPage=<%=request.getAttribute("jtCrmSSOLogoutPage")%>',

});

}

 var mask = function() {

        $('<div id="mask" style="width: ' + $(window).width() + 'px; '

            + 'height: ' + $(window).height() + 'px;"></div>').appendTo("body");

    };

</script>

转载于:https://www.cnblogs.com/hujie-developer/p/5833812.html

你可能感兴趣的文章
ssh自动分发密匙脚本样板
查看>>
转 小辉_Ray CORS(跨域资源共享)
查看>>
Linux安装postgresql
查看>>
MyBatis启动:MapperStatement创建
查看>>
【 全干货 】5 分钟带你看懂 Docker !
查看>>
[转]优化Flash性能
查看>>
popStar手机游戏机机对战程序
查看>>
lambda表达式树
查看>>
二次注入原理及防御
查看>>
会话记住已登录功能
查看>>
Linux内核分析——可执行程序的装载
查看>>
第一阶段冲刺3
查看>>
父类引用指向子类对象
查看>>
网页如何实现下载功能
查看>>
IT男专用表白程序
查看>>
读《大道至简》第六章感想
查看>>
ef linq 中判断实体中是否包含某集合
查看>>
章三 链表
查看>>
Solution for Concurrent number of AOS' for this application exceeds the licensed number
查看>>
CSE 3100 Systems Programming
查看>>