Posted in Javascript onNovember 12, 2013
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; }
JS实现遮罩层效果的简单实例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@