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+"");
  • 相关阅读:
    iptables
    apt
    cvc-elt.1: Cannot find the declaration of element 'beans'.
    di
    log
    java内存模型
    spring-jms
    JTS
    10java进阶——IO2
    17单例
  • 原文地址:https://www.cnblogs.com/oumi/p/10228754.html
Copyright © 2011-2022 走看看