首页 新闻 会员 周边

如何让网页自适应 Treeview 高度

0
悬赏园豆:5 [已解决问题] 解决于 2013-12-15 15:59

以下代码,Left.aspx只是框架的最左边部分, 以下代码只是让Left.aspx永远与屏幕高度一致,如果Treeview 加载的数据很多,但是left.aspx 右边并没有一个拉伸条出来,还只是与屏幕高度一致,以下是代码,不知道要改那里,才能Treeview 屏开的时候, Left.aspx 自动有一个拉伸条出来,请高人斧正,谢谢. 
 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="Left" %>

<%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<script language="javascript" type="text/javascript">
</script>
    <title>Left</title>
    <link href="style.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor='<%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>' text="#000000"
    leftmargin="0" topmargin="0" onload="" marginheight="0" marginwidth="0" scroll=no onload="display()">
    <form id="Form1" method="post" runat="server">
    <table width="204" height="100%" border="0" cellpadding="0" cellspacing="0" id="size">
        <tr>
            <td height="27">
                <img src='<%=Application[Session["Style"].ToString()+"xleft1_bgimage"]%>' width="200"
                    height="27">
            </td>
            <td  bgcolor='<%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>'>
            </td>
        </tr>
        <tr>
            <td height="100%" valign="top" background='<%=Application[Session["Style"].ToString()+"xleftbj_bgimage"]%>'>
                <div align="left">
                <font color="#314a72">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= strWelcome %></font>
              
                </div>
                <asp:TreeView ID="TreeView1" runat="server" SelectExpands="True">
                </asp:TreeView>
                <br>
                &nbsp;                
             </td>
        </tr>
        <tr>
            <td height="19">
                <img src='<%=Application[Session["Style"].ToString()+"xleft2_bgimage"]%>' width="200"
                height="19">
            </td>
        </tr>
    </table>
      <uc1:WebUserControl      ID="WebUserControl1" runat="server" />
    </form>
</body>
</html>

zhengyingcan的主页 zhengyingcan | 初学一级 | 园豆:12
提问于:2013-08-10 20:19
< >
分享
最佳答案
0

jquery代码

$(function(){

  //获取高度

//设置树高度。

});

收获园豆:5
paaple | 初学一级 |园豆:15 | 2013-08-13 17:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册