我知道CSS选择器具有最高的优先级(即.classname< #idname)。
我还知道,如果事物具有相同的特异性,那么最后一个调用的语句将具有优先权:
.classname1 { color: red; }
.classname1 { color: blue; } // classname1 color will be blue
HTML类在DOM元素上的排序是否会影响语句优先级?
炎炎设计
侃侃尔雅
慕桂英4014372
红糖糍粑
随时随地看视频慕课网APP