<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            width: 403px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 163%;">
        <tr>
            <td class="style1">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/image/logo.jpg" Style="margin-left: 0px" />
            </td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="当前时间:" ForeColor="Red"></asp:Label>
                <span id="jnkc" style="color: Red; width: 100"></span>                <script language="javascript" type="text/javascript">
                
                 setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);  
                </script>                <asp:Button ID="BUT_TC" runat="server" Text="退出" Width="40px" OnClick="BUT_TC_Click"
                    Height="20px" />
            </td>
        </tr>
    </table>
    <table width="1002" border="0" cellspacing="0" cellpadding="0" style="height: 631px">
        <tr>
            <td height="550" valign="top" scope="col" style="width: 158px">
                <div align="left">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 561px">
                        <tr>
                            <td width="132" valign="top" bgcolor="#ECF7FF" scope="col">
                                <table width="132" border="0" cellspacing="0" cellpadding="0" style="height: 541px">
                                    <tr>
                                        <td height="21" background="images/index_06.jpg" scope="col">
                                            <div align="center">
                                                <asp:TreeView ID="TreeView1" runat="server" Height="589px" Width="16px" ImageSet="BulletedList"
                                                    DataSourceID="SiteMapDataSource1" BackColor="White" BorderColor="Red" EnableTheming="True"
                                                    Font-Bold="True" Font-Names="宋体" Font-Size="Larger" ToolTip="请选择">
                                                    <ParentNodeStyle Font-Bold="False" />
                                                    <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                                                    <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px"
                                                        ForeColor="#5555DD" />
                                                    <RootNodeStyle BorderColor="Red" VerticalPadding="0px" />
                                                    <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
                                                        NodeSpacing="0px" VerticalPadding="0px" />
                                                </asp:TreeView>
                                                <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                                        </td>
                                    </tr>
                        </tr>
                    </table>
                </div>
            </td>
    </table>
    <td width="10" scope="col">
        &nbsp;
    </td>
    <td align="left" valign="top" scope="col">
       <asp:Panel ID="Panel2" runat="server" Height="100%" Width="100%">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
       </asp:Panel>
    </td>
    </form>
</body></html>           有一部分的页面在
TreeView 的下方      将一个完整的页面分成了2个部分!    请问各位大侠这HTML的代码改怎么改!
请直接修改!谢谢!

解决方案 »

  1.   

    <td align="left" valign="top" scope="col">
    <asp:Panel ID="Panel2" runat="server" Height="100%" Width="100%">
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
    </asp:Panel>
    </td> </form>
    </body></html>
    你的tr标签呢?你的table标签呢?你就直接用td啊?如果你前面有用,你后面也要个结束标签吧?
      

  2.   

     <td align="left" valign="top" scope="col">
    <asp:Panel ID="Panel2" runat="server" Height="100%" Width="100%">
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
    </asp:Panel>
    </td> 这段代码应该嵌套在<tr><table>中