不工作:
td:not(:last-child), td:not(:nth-last-child(2))
{ background-color:#ccc; }
不工作:
td:not(:nth-last-child(1)), td:not(:nth-last-child(2))
{ background-color:#ccc; }
不工作:
td:not(:nth-last-child(2))
{ background-color:#ccc; }
td:not(:nth-last-child(1))
{ background-color:#ccc; }
单独工作:
td:not(:nth-last-child(2))
{ background-color:#ccc; }
独自工作
td:not(:nth-last-child(1))
{ background-color:#ccc; }
示例:http: //jsfiddle.net/HBeRH/