最简洁的去除最后一条线的css方法

.nav li:not(:last-child) {        border-right: 1px solid #666;  }