宽容他人,放过自己。

css高斯模糊和js控制html元素显示

Posted on By anchoriteFili

.blur {    
    filter: url(blur.svg#blur); /* FireFox, Chrome, Opera */
    
    -webkit-filter: blur(10px); /* Chrome, Opera */
       -moz-filter: blur(10px);
        -ms-filter: blur(10px);    
            filter: blur(10px);
    
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false); /* IE6~IE9 */
}
document.getElementById("EleId").style.visibility="hidden";
document.getElementById("EleId").style.visibility="visible";

document.getElementById("EleId").style.display="none";
document.getElementById("EleId").style.display="inline";