Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/441.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Z索引和定位:在使用“Particleground”Jquery插件时,项目不断向下推_Javascript_Jquery_Html_Css_Jquery Plugins - Fatal编程技术网

Javascript Z索引和定位:在使用“Particleground”Jquery插件时,项目不断向下推

Javascript Z索引和定位:在使用“Particleground”Jquery插件时,项目不断向下推,javascript,jquery,html,css,jquery-plugins,Javascript,Jquery,Html,Css,Jquery Plugins,我对z指数和定位有些困惑。我读过关于这方面的问题和文章,我一直在努力 我正在尝试使用Jquery插件:“Particleground”: 我已经使用了这个插件,我在页面顶部得到了粒子。但我的整个标题页都被压下了,但我希望它显示在顶部。请帮忙 制作粒子容器: position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 0; position: absolute; top: 0; left: 0; width: 100

我对z指数和定位有些困惑。我读过关于这方面的问题和文章,我一直在努力

我正在尝试使用Jquery插件:“Particleground”:


我已经使用了这个插件,我在页面顶部得到了粒子。但我的整个标题页都被压下了,但我希望它显示在顶部。请帮忙

制作粒子容器:

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;
以及您的内容容器:

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;

谢谢你的回答!但现在我对内容容器上的“位置:绝对”有问题……所有内容似乎都跟随向下滚动。还有,有人知道如何“停止”或覆盖网页某些部分的分词吗