實現效果相似alert效果javascript
<style type="text/css">css
#mask {java
background: #000;app
opacity: 0.6;jsp
position: fixed;url
z-index: 9999;spa
top: 0;blog
left: 0;ip
}ci
</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>