设置第一个以外的元素样式:not(:first-child),设置最后一个除外的元素样式:not(:last-child)

代码截图:

原文地址:https://www.cnblogs.com/zzz-knight/p/11790553.html