区域书会把所有区域显示出来,但是因为区域太多,显示多了下面的看不到,右边又没有显示下拉条 很纠结
已经试过在TreeView 里面固定高度,没有用 依然没有下拉条 而且显示的树会出现在固定区域以外 以下是代码部分:
<body style="background:url(../images/rz_bg.jpg); text-align:left;">
<form sid="form1" runat="server" style="width:0px; height:0px; overflow:visible;">
<div class="right main" style="width:0px; height:0px; overflow:visible;">
<div class="rz_md2 main" align="center"style="width:0px; height:0px; overflow:visible;">
<div class="rz_md5" align="center">
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#444866"
style="height: 300px; width: 500px">
<tr>
<td align="center" valign="middle" bgcolor="#4a5369" class="STYLE5">区域选择</td>
<td align="left" valign="middle" bgcolor="#F4F7FC" class="STYLE1">
<asp:UpdatePanel ID="udpl_area1" runat="server">
<ContentTemplate>
<asp:ScriptManager
ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:TreeView ID="trvw_area" runat="server"
ShowCheckBoxes="All"
ontreenodecheckchanged="trvw_area_TreeNodeCheckChanged" ShowLines="false">
</asp:TreeView>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
已经试过在TreeView 里面固定高度,没有用 依然没有下拉条 而且显示的树会出现在固定区域以外 以下是代码部分:
<body style="background:url(../images/rz_bg.jpg); text-align:left;">
<form sid="form1" runat="server" style="width:0px; height:0px; overflow:visible;">
<div class="right main" style="width:0px; height:0px; overflow:visible;">
<div class="rz_md2 main" align="center"style="width:0px; height:0px; overflow:visible;">
<div class="rz_md5" align="center">
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#444866"
style="height: 300px; width: 500px">
<tr>
<td align="center" valign="middle" bgcolor="#4a5369" class="STYLE5">区域选择</td>
<td align="left" valign="middle" bgcolor="#F4F7FC" class="STYLE1">
<asp:UpdatePanel ID="udpl_area1" runat="server">
<ContentTemplate>
<asp:ScriptManager
ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:TreeView ID="trvw_area" runat="server"
ShowCheckBoxes="All"
ontreenodecheckchanged="trvw_area_TreeNodeCheckChanged" ShowLines="false">
</asp:TreeView>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
解决方案 »
- SqlCommandBuilder为什么不支持多table更新???
- 我要 验证控件 的后面直接创建层,层里面有提示信息
- 求助一段js代码
- JavaScript 读xml 运行报错,看了半天没错误啊,邦个忙啊!
- 在asp.net,GridView的模版列中加入按钮,触发按钮事件后,如何获取该行的某个值?
- DATAGRID添加模板列和如何动态添加数据到表格当中?在线等!!!!!
- asp.net高手们的对话,过来发表下意见。
- 我用extjs的gridpanel实现分页数据就是不显示怎么回事
- 如何将ImageButton 不可操作,(要求是不可操作,而不是不可见)
- 请问datalist里的加的dropdownlist控件可以单独绑定数据库嘛?
- 关于asp.net http下载
- [求助]VB.NET环境,连接SQL数据库时提示sa登录失败,如何解决?
<div id="selectSub" style="text-align: left;">
//这里放你的TreeView </div>
</div>我这个是只显示竖向滚动条。当TreeView高度超过500px 时,它就是为显示滚动条,否则不显示。
你只要注意写对那div 的style属性就行了,我那些class是样,关于滚动条的都写在style里了。你试试吧