乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      JqueryEasyUI 解決IE下加載時(shí)頁(yè)面錯(cuò)亂的問(wèn)題

       為什么圖書館13 2016-06-25

      問(wèn)題描述:

      一直覺(jué)得jqueryeasyui在IE下的渲染效果不大好,尤其剛進(jìn)入頁(yè)面時(shí)的加載,頁(yè)面會(huì)出現(xiàn)布局錯(cuò)亂,雖然是一閃而過(guò),但是給用戶的體驗(yàn)不好;

      可以通過(guò)在頁(yè)面onload時(shí),增加一個(gè)遮罩層,把jqueryeasyui的頁(yè)面渲染過(guò)程遮住,等頁(yè)面加載完后,扔掉遮罩層,顯示頁(yè)面;


      解決辦法:

      [javascript] view plain copy
      print?
      1. /* 
      2. 文件說(shuō)明:頁(yè)面加載時(shí)Loading JS 
      3. 文件描述:解決IE或FF下,初始化加載時(shí),頁(yè)面布局亂掉的問(wèn)題,參考:http://283433775./blog/720895 
      4. */  
      5. var width = $(window).width();  
      6. var height = $(window).height();  
      7.   
      8. var html = "<div id='loading' style='position:absolute;left:0;width:100%;height:" + height + "px;top:0;background:#E0ECFF;opacity:1;filter:alpha(opacity=100);'>";  
      9. html += "<div style='position:absolute;cursor1:wait;left:" + ((width / 2) - 75) + "px;top:200px;width:150px;height:16px;padding:12px 5px 10px 30px;";  
      10. html += "background:#fff url(" + _basepath + "Scripts/jquery-easyui-1.4/themes/default/images/loading.gif) no-repeat scroll 5px 10px;border:2px solid #ccc;color:#000;'>";  
      11. html += "正在加載,請(qǐng)等待...";  
      12. html += "</div>";  
      13. html += "</div>";  
      14.   
      15. window.onload = function () {  
      16.     var mask = document.getElementById('loading');  
      17.     mask.parentNode.removeChild(mask);  
      18. };  
      19. document.write(html);  
      20.    
      把上面的js保存到文件,再引用到頁(yè)面即可。

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多