像这样的东西应该工作(只是示例代码[使用语义ID]):
<div id="SlideShowContainer">Slide Show Generates into this div</div>
<div id="AllOtherContentWrapper">All other content goes here</div>
Run Code Online (Sandbox Code Playgroud)
然后将css设置为:
#SlideShowContainer {
position: fixed;
z-index: 0;
top: 0; right: 0; bottom: 0; left: 0;
}
#AllOtherContentWrapper {
position: relative; /* this could be absolute depending on application*/
z-index: 1;
}
Run Code Online (Sandbox Code Playgroud)
这应该使幻灯片放映的容器等于当前屏幕大小,并将其固定到位(基本上像固定背景一样).然后,该网站的其余部分将位于另一个div中的幻灯片放映之上.
| 归档时间: |
|
| 查看次数: |
4972 次 |
| 最近记录: |