游戏内嵌页说明文档

因为游戏内嵌页区域大小为720*480,所以在做游戏内嵌活动页面的时候需要注意以下几点:

  1. 页面宽度设置为(700px 因为会包括滚动条),高度不用设置(如果高度小于480px的话,就设置为480px)
  2. 在页面head中加

     <meta http-equiv="x-ua-compatible" content="IE=edge" > 
    
  3. 需要给滚动条添加样式,样式为

     ::-webkit-scrollbar-track-piece{background-color:#05060a;}
     ::-webkit-scrollbar{width:6px;}
     ::-webkit-scrollbar-thumb{background:#4c5470;border-radius: 10px}
    
  4. 需要屏蔽PC端自带广告,需要在js里面设置

     window['no_webtips_flag'] = true;
    
  5. 引入milo,重新封装alert

     function showMsg(msg){
         need("biz.lottery",function(LotteryManager){
             LotteryManager.alert(msg);
         });
     }
     window.alert = function(msg){
         showMsg(msg);
     }
    

enter image description here

Copyright (c) 2018 Tencent-TGIDEAS. all right reserved,powered by Gitbooktime: 2018-08-21 15:35:10

results matching ""

    No results matching ""

    results matching ""

      No results matching ""