This feature shall allow you to hide the topic. If you are not interested in this topic, you can hide it and it won't show up again.
You will be able to enjoy this feature if you are a 💎Premium Member.
Besides the many exclusive convenient features, the premium membership is also a great support to the Rolia Forum. Please subscribe the premium membership.
比方说, 这个 element: <p class="myP1" id="myID1">
下面这两个 css selector, 哪一个更 specific?
第一个: p.myP1
第二个: #myID1
谁说ID就一定是unique的?
我可以做一个网页。里面有五百个elements.我可以故意让它们全都carry同样的ID.而P和class name却倒是uniquely identify a particular element.
所以说我觉得现在关于css selector specificity所制定的规择不是很合理,需要改一改.
应该以selector出现的先后次序为准.越是晚出现的selector,越有优先权.这样才比较合情合理.