Why is this 11 class selector less specific than the ID? [duplicate]
问题 This question already has an answer here : Why can't I beat an ID with multiple classes? [duplicate] (1 answer) Closed last year . #box { width: 100px; height: 100px; background-color: #ff0; } .one.two.three.four.five.six.seven.eight.nine.ten.eleven { background-color: #f00; } <div id="box" class="one two three four five six seven eight nine ten eleven"></div> If the following points are given to each type of selector, then how come the above class selector does not override the ID selector?