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>

    效果图:

  • 相关阅读:
    mybatis调用oracle存储过程
    java heap space
    汉字转拼音
    Go调用cpp类方式一
    ETCD节点故障恢复
    goroutine 加 channel 代替递归调用,突破递归调用的层级限制
    vscode debug golang
    mysql分组和去重同时使用
    github、gitlab 管理多个ssh key
    Qt连接MySQL
  • 原文地址:https://www.cnblogs.com/ethanwill/p/3719229.html
Copyright © 2011-2022 走看看