删除角树中箭头后的边框

时间:2019-01-30 06:15:14

标签: angular

我正在实现角度树

angular2-tree

我要删除边界线,该怎么办。

请帮助

enter image description here

2 个答案:

答案 0 :(得分:0)

https://angular2-tree.readme.io/v7.2.0/docs/styling的分支线主题下,您可以看到类别.node-content-wrapper::before.tree-children::after上有边框。

所以尝试这个

.node-content-wrapper::before {
  border-bottom: none;
  border-left: none;
}

.tree-children::after {
  border-left: none;
}

答案 1 :(得分:0)

我相信.node-content-wrapper类使用::before选择器会生成灰色边框线

.node-content-wrapper::before {
  border-bottom: 1px solid lightgrey;
  border-left: 1px solid lightgrey;*/
  height: 28px;
  top: -17px;
  width: 20px;
  left: -28px;
}

如果您删除属性,或之前删除整个.node-content-wrapper :::,灰色边框线将不再显示。