JS實現遮罩層效果的簡單實例
function show(){
var cover = document.getElementById("cover");
cover.style.width = document.documentElement.scrollWidth+"px";
cover.style.height = document.documentElement.scrollHeight+"px";
cover.style.display = "block";
}
#cover{
background:gray;
position:absolute;
left:0px;
top:0px;
display:none;
z-index:20;
filter:alpha(opacity=60);
opacity:0.6 !important;
}
相關文章
vue基于ElementUI動態(tài)設置表格高度的3種方法
ElementUI+vue動態(tài)設置表格高度的幾種方法,拋磚引玉,還有其它方法動態(tài)設置表格高度,大家可以開動腦筋2025-02-02

