TreeView增加滚动条,请帮忙看看。
代码如下,很简单的,我就是想让该TreeView在显示在左面,并且当都展开时,进过一定高度就出现滚动条。我试了半天也不好用。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfm_DOC001_02.aspx.cs" Inherits="DocManager_wfm_DOC001_02" %>
<!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 id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr style="height: 100%; width: 100%">
<td height="100%" style="border-right: #999999 1px solid; border-top: #999999 1px solid;
border-left: #999999 1px solid; border-bottom: #999999 1px solid; width: 250px;">
<div style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 10px">
<table cellpadding="1" cellspacing="1" width="100%" border="1">
<tr>
<td>
<asp:TreeView ID="trvForderList" Style="position: absolute; top: 16px" runat="server"
ShowLines="True" OnTreeNodePopulate="trvForderList_TreeNodePopulate">
</asp:TreeView>
</td>
</tr>
</table>
</div>
</td>
<td style="border-left: gray 1px solid" align="center" valign="middle" height="100%">
<table border="0" bgcolor="#dddddd" cellpadding="0" cellspacing="0" align="center"
width="100%" height="100%">
<tr height="5">
<td colspan="3">
</td>
</tr>
<tr>
<td style="width: 5px; height: 259px">
</td>
<td width="100%" style="border-right: gray 1px solid; border-top: gray 1px solid;
border-left: gray 1px solid; border-bottom: gray 1px solid; height: 259px;">
<iframe name="showFrame" scrolling="no" frameborder="0" height="700px" width="100%"
src="wfm_DOC005.aspx?FOLDERID=999"></iframe>
</td>
<td width="75" style="height: 259px">
</td>
</tr>
<tr style="height: 5">
<td colspan="3">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>