zoukankan      html  css  js  c++  java
  • Js:弹窗剧中

    js变量设置
    
        var iWidth = $(window).width() * 0.9;
        var iHeight = $(window).height() * 0.9;
        var iTop = (window.screen.height - 30 - iHeight) / 2;
        var iLeft = (window.screen.width - 10 - iWidth) / 2;
    var tgUrl="https://www.baidu.com/";
    js弹出窗体
    
    
            //弹窗方式打开
            var ifraDoc = $("<iframe id="viewDoc" src='" + tgUrl + "' style="height: " + iHeight + "px; padding: 10px;  " + iWidth + "px; " marginheight="0" marginwidth="0" frameborder="0" height="0px" width="0px" ></iframe>");
            $(ifraDoc).dialog({ autoOpen: true, modal: true, title: "文档预览" });
    
            //新开页签方式打开
            //window.open(tgUrl, "_blank", "status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=no,resizable=yes,modal=true,alwaysRaised=yes,width=" + iWidth + ",height=" + iHeight + ",top=" + iTop + ",left=" + iLeft+"");
  • 相关阅读:
    Nginx安装详细指南
    git 常用命令
    oracle server config
    CentOS6.5下安装oracle11gR2
    oracle query
    oracle function
    oracle note
    正则表达
    DOM&BOM的起源、方法、内容、应用
    sticky
  • 原文地址:https://www.cnblogs.com/oumi/p/10228754.html
Copyright © 2011-2022 走看看