zoukankan      html  css  js  c++  java
  • .今天公司项目中的弹层效果

    记录下来备忘
    <style type="text/css">
    #top_NewsBg
    {
        display:none;
        background-color:#000;
        position:absolute;
        top:0;
        left:0;
        100%;
        height:100%;
        z-index:999;
    }
    #top_NewsDiv{display:none; background-color:#fff; position:absolute; top:50%; left:50%; height:235px;_height:225px;!height:225px; margin-top:-150px; 468px; margin-left:-250px;z-index:1100;}
    </style>
    <script language="javascript" type="text/javascript">
        function top_showNewsDiv(Fid, Amount) {
            $("#top_NewsIframe").attr("src", "/<%=Common.Para.siteHead %>u/ShowLogin.aspx?Fid="+Fid+"&Amount="+Amount);
            var scrolltop = $(document).scrollTop();
            var h = $(document).height() - 4 + scrolltop;
            $("#top_NewsBg").css("height", h + "px").css("width", $(document).width() - 17 + "px");
            $("#top_NewsBg").fadeTo("slow",0.5);
            $("#top_NewsDiv").fadeIn(500);
        }
        function close_top_NewsDiv() {
            $("#top_NewsDiv").fadeOut("fast");
            $("#top_NewsBg").fadeOut("fast");
        }
    </script>
    <div id="top_NewsBg"></div>
    <div id="top_NewsDiv"><iframe id="top_NewsIframe" style="100%;height:235px;_height:225px;!height:225px;" frameborder="0" scrolling="no"></iframe>
    </div>

    子页面中调用
    function closediv() {
                parent.close_top_NewsDiv();
     }
    关闭弹层

  • 相关阅读:
    创建pdf
    IOS绘图
    IOS断点续传
    IOS程序之间的跳转
    MBProgressHUD的使用
    清除缓存的方法(计算)
    使用post请求下载数据
    NSTimer的使用
    定位功能(使用系统地图)
    fork仓库保持同步更新
  • 原文地址:https://www.cnblogs.com/zpc870921/p/2640537.html
Copyright © 2011-2022 走看看