Cocos2d-js h5游戏在 微信中打开时,点击屏幕后 微信上方title标题消失

其原因是 可能是 canvas 元素的问题 将canvas加入到div元素中就可以解决 
<html lang="en">
    <head>
    <Meta charset="utf-8">


    <style>
    body,canvas,div {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0);
}

#Cocos2dGameContainer {
    position: absolute;
    margin: 0;
    overflow: hidden;
    left: 0px;
    top: 0px;
    display: -webkit-Box;
    -webkit-Box-orient: horizontal;
    -webkit-Box-align: center;
    -webkit-Box-pack: center;
}
</style>

    

    <div id = "Cocos2dGameContainer" style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="640"  data-content-height="960" data-show-paint-rect="false" data-multi-fingered="2" data-show-fps="false" data-show-log="false"  data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgalpha:0.9">

        <canvas id="gameCanvas" width="640" height="960"></canvas>
    </div>

相关文章

    本文实践自 RayWenderlich、Ali Hafizji 的文章《...
Cocos-code-ide使用入门学习地点:杭州滨江邮箱:appdevzw@1...
第一次開始用手游引擎挺激动!!!进入正题。下载资源1:从C...
    Cocos2d-x是一款强大的基于OpenGLES的跨平台游戏开发...
1.  来源 QuickV3sample项目中的2048样例游戏,以及最近《...
   Cocos2d-x3.x已经支持使用CMake来进行构建了,这里尝试...