当前位置: 代码迷 >> .NET组件控件 >> TreeView 竖连接线中止
  详细解决方案

TreeView 竖连接线中止

热度:8613   发布时间:2013-02-25 00:00:00.0
TreeView 竖连接线间断
请教大家:
  TreeView控件的竖连接线间断.,我复制MSDN例子也是如此..(TreeView控件是VS2005自带的),请问怎么处理?
 
  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="index2.aspx.cs" Inherits="index2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
  <body>
  <form id="Form1" runat="server">
   
  <h3>TreeView LineImagesFolderUrl Example</h3>
  <asp:TreeView id="LinksTreeView"
  LineImagesFolder="~/TreeLineImages"
  ShowLines="True" 
  runat="server">
   
  <Nodes>
   
  <asp:TreeNode Text="Table of Contents"
  SelectAction="None" Value="Table of Contents">
   
  <asp:TreeNode Text="Chapter One" Value="Chapter One">
   
  <asp:TreeNode Text="Section 1.0" Value="Section 1.0">
   
  <asp:TreeNode Text="Topic 1.0.1" Value="Topic 1.0.1"/>
  <asp:TreeNode Text="Topic 1.0.2" Value="Topic 1.0.2"/>
  <asp:TreeNode Text="Topic 1.0.3" Value="Topic 1.0.3"/>
   
  </asp:TreeNode>
   
  <asp:TreeNode Text="Section 1.1" Value="Section 1.1">
   
  <asp:TreeNode Text="Topic 1.1.1" Value="Topic 1.1.1"/>
  <asp:TreeNode Text="Topic 1.1.2" Value="Topic 1.1.2"/>
  <asp:TreeNode Text="Topic 1.1.3" Value="Topic 1.1.3"/>
  <asp:TreeNode Text="Topic 1.1.4" Value="Topic 1.1.4"/>
   
  </asp:TreeNode>
   
  </asp:TreeNode>
   
  <asp:TreeNode Text="Chapter Two" Value="Chapter Two">
   
  <asp:TreeNode Text="Section 2.0" Value="Section 2.0">
   
  <asp:TreeNode Text="Topic 2.0.1" Value="Topic 2.0.1"/>
  <asp:TreeNode Text="Topic 2.0.2" Value="Topic 2.0.2"/>
   
  </asp:TreeNode>
   
  </asp:TreeNode>
   
  </asp:TreeNode>

  <asp:TreeNode Text="Appendix A" Value="Appendix A" />
  <asp:TreeNode Text="Appendix B" Value="Appendix B" />
  <asp:TreeNode Text="Appendix C" Value="Appendix C" />
   
  </Nodes>
   
  </asp:TreeView>
  </form>
  </body>
</html>

------解决方案--------------------------------------------------------
估计是样式的问题 去掉页面自带的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  相关解决方案