CSS class priorities
问题 I have a question about the priority of CSS classes after encountering a problem today. The situation is as follows: I have an unordered list which has a class associated with it. The LI tags have some styles defined too. I want to change the styling of the LI s after a click (via an added "selected" class), but the added class's styles are never applied. Is this normal behavior or should this code work? CSS: .dynamicList { list-style: none; } .dynamicList li { display: block; width: 400px;