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>

    效果图:

  • 相关阅读:
    让8个数码管全部显示数字
    程序存储空间与内存
    点亮数码管,显示具体的数字
    为什么点亮小灯时,有时是输入数字0,有时是数字1
    循环点亮LED灯
    keil 编程时,总是中英文切换时,格式混乱。
    点亮LED灯
    学生管理系统(C 大一期末作业)
    ivew ui
    git常见操作
  • 原文地址:https://www.cnblogs.com/ethanwill/p/3719229.html
Copyright © 2011-2022 走看看