/*table-layout:fixed 会使表格均等分*/
#TreeView1 table
        {
            width:290px;
            table-layout: fixed;
        }
#TreeView1 td:first-child {
    width:8%;
}

/*+选择下一个兄弟节点 注意+前后都有空格*/
#TreeView1 td:first-child + td {
    width:6%;
}

/*[attribute]含有某个属性的元素*/
#TreeView1 td[class] {
    width:80%;
    text-align:left;
}

/*下面的才是重点*/
      #TreeView1  td.node
        {

            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

table-layout:fixed会使表格均等分,不过不用紧张,可以使用选择器来调每一列的高度

http://www.w3school.com.cn/cssref/css_selectors.asp

特别对于IE8尽可能使用css2的选择器去控制

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2021-10-03
  • 2021-11-23
  • 2022-12-23
  • 2021-12-12
  • 2021-12-20
  • 2021-07-26
  • 2022-12-23
相关资源
相似解决方案