Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.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
Animation 如何使用KineticJS | Canvas元素作为HTML背景。_Animation_Canvas_Background_Cordova_Kineticjs - Fatal编程技术网

Animation 如何使用KineticJS | Canvas元素作为HTML背景。

Animation 如何使用KineticJS | Canvas元素作为HTML背景。,animation,canvas,background,cordova,kineticjs,Animation,Canvas,Background,Cordova,Kineticjs,我需要为Phonegap项目制作背景动画。我怎样才能做到这一点?我确实有一些初学者的Kineticjs技能,但我就是想不出来 谢谢 #canvas { width:100%; height:100%; z-index:-1; position:fixed; top:0; left:0; } .content { z-index:1; overflow:scroll; height:100%; } 有了两个css,我就能做

我需要为Phonegap项目制作背景动画。我怎样才能做到这一点?我确实有一些初学者的Kineticjs技能,但我就是想不出来

谢谢

#canvas {
    width:100%;
    height:100%;
    z-index:-1;
    position:fixed; 
    top:0;
    left:0;
}
.content {
    z-index:1;
    overflow:scroll;
    height:100%;
}

有了两个css,我就能做到这一点。谢谢:D

#canvas{宽度:100%;高度:100%;z-index:-1;位置:固定;顶部:0;左侧:0;}。内容{z-index:1;溢出:滚动;高度:100%;}使用两个css我可以做到这一点。谢谢:DSo你解决你自己的问题了吗?如果是这样的话,我建议你回答自己的问题,并将其标记为已接受的答案。你应该等10小时才能回答:)也要等24小时才能标记:)