zoukankan      html  css  js  c++  java
  • 遮罩层实例

    代码如下:

     <script type="text/javascript">
         $(function () {
             $('#ProjectDialog').dialog({
                 autoOpen: false,
                  1100,
                 Height: 700,
                 draggable: true,
                 resizable: false,
                 modal: true,
                 zIndex: 599,
                 position: { my: "center top", at: "center top", of: window }
             });
         });
    
    
         function opend()
         {
             $('#ProjectDialog').dialog('open');
             $('#ProjectDialog').parent().appendTo("form");
         }
    
         </script>

    实现如下:

    <div id="ProjectDialog" title="Choose Project">
        <uc1:uc_Product_Search ID="uc_ProjectMenu1" runat="server" />
        </div>
    
        <input id="Button1" type="button" value="Client button" onclick="opend()" />
        <br />
        <asp:Button ID="Button2" runat="server" Text="Server Button" OnClientClick="opend();return false;" />
        <br />
    
        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </ContentTemplate>
        </asp:UpdatePanel>

    效果图:

  • 相关阅读:
    赋值运算符重载
    拷贝构造函数
    sizeof与strlen
    C++函数参数为引用或指针
    Largest Rectangle in Histogram
    二极管作用
    yzoj P1948 取数字问题
    NOIP 2016 愤怒的小鸟 题解
    NOIP 2016 蚯蚓 题解
    NOIP 2016 组合数问题 题解
  • 原文地址:https://www.cnblogs.com/ethanwill/p/3719229.html
Copyright © 2011-2022 走看看