1

I am working on a project and in that I want to apply background fade feature when a panel opens on a webpage in asp.net. The fade in feature looks like the Facebook photo feature.click here to see Facebook photo effect
Here consider the photo as my panel and background as my web page.

Please help me with this as I don't know what this effect is called.

4

1 回答 1

1

它被称为覆盖,一种方法是将其附加到文档的末尾:

html:

<body>
 ... all your content ...

  <div id="overlay">
     <div class="pictures">
     </div>
  </div>
</body>

CSS:

body {
   position:relative;
}
#overlay {
    position:absolute; /** or fixed **/
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
}

默认情况下,您的叠加层是隐藏的。您可以使用 JavaScript 将显示设置为在显示图库时阻止;

于 2012-11-17T04:24:51.510 回答