理解 CSS 中的就近原则
常见的一道面试题: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>就近原则</title> <style type="text/css"> .classA { color: red; } .classB { color: yellow; } </style> </head> <body> <div id="test" class="classB cl