如图所示:之前父节点和子节点都是居中对齐,看起来很层次感,后来查找问题发现原来是CSS样式的问题。

    table{
    table-layout:fixed;
    empty-cells:show;
    border-collapse: collapse;
    margin:0 auto;
}

把margin:0 auto;去掉之后就treeview节点就是左对齐了。

 

ASP.NET  TreeView控件各个节点总是居中对齐,而不是左对齐的问题ASP.NET  TreeView控件各个节点总是居中对齐,而不是左对齐的问题

相关文章:

  • 2021-05-20
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2021-05-23
  • 2021-12-27
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案