遮罩层

//遮罩层
$("<div id='shade'></div>").css({
position:'absolute',
top:0,
left:0,
backgroundColor:"red",
opacity:0.1,
zIndex:300,
}).height($(document).height()).width($(document).width()).hide().appendTo("#all_query_table");

#all_query_table是目标div

原文地址:https://www.cnblogs.com/lwh-12345/p/14595968.html