我对z索引和定位有些困惑。我读过关于这方面的问题和文章,我一直在努力。
我正在尝试使用一个Jquery插件:'Particleground':https://github.com/jnicol/particleground/find/master
我已经使用了插件,我正在获取页面顶部的粒子。但是我的整个标题页都被下推了,但我想让它出现在顶部。请帮帮我!
发布于 2015-03-09 08:32:41
使粒子容器:
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 0;和你的内容容器:
position: absolute;
top: 0;
left: 0;
width: 100%;
/* dont touch the height, it will adapt to the content */
z-index: 1;https://stackoverflow.com/questions/28933427
复制相似问题