母版小制作

来源:互联网 发布:单片机密码锁设计程序 编辑:程序博客网 时间:2024/04/28 12:35
 

初学母版,望高手指教!页面代码如下:

<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 561px;
        }
        .style2
        {
            height: 81px;
            width: 989px;
        }
        .style3
        {
            height: 48px;
            width: 989px;
        }
        .style4
        {
            height: 328px;
            width: 989px;
        }
        .style5
        {
            width: 100%;
            height: 328px;
        }
        .style6
        {
            width: 152px;
        }
        .style7
        {
            width: 989px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td class="style2">
                    <asp:Image ID="Image1" runat="server" Height="132px"
                        ImageUrl="~/images/logo.jpg" Width="992px" />
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Image ID="Image2" runat="server" Height="52px" ImageUrl="~/images/dh.jpg"
                        Width="992px" />
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <table class="style5">
                        <tr>
                            <td class="style6">
                                <div style="height: 322px; width: 149px; background-color:Gray; text-align: center;">
                               
                                    <asp:Button ID="Button1" runat="server" BackColor="#0066FF" ForeColor="White"
                                        Height="26px" Text="考生管理" Width="99px" Xonclick="Button1_Click" />
                                    <br />
                                    <asp:Button ID="Button2" runat="server" BackColor="#0066FF" ForeColor="White"
                                        Height="26px" Text="管理员管理" Width="99px" Xonclick="Button2_Click" />
                                    <asp:Button ID="Button3" runat="server" BackColor="#0066FF" ForeColor="White"
                                        Height="26px" Text="密码修改" Width="99px" />
                                    <asp:Button ID="Button4" runat="server" BackColor="#0066FF" ForeColor="White"
                                        Height="26px" Text="系统注销" Width="99px" />
                               
                                </div>
                                </td>
                            <td>
                            <div style="height: 312px">
                            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
                            </div>
                               
        </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <asp:Image ID="Image3" runat="server" Height="44px" ImageUrl="~/images/bq.jpg"
                        Width="992px" />
                </td>
            </tr>
        </table>
       
    </div>
    </form>
</body>

原创粉丝点击