免費使用,無需帳戶

CSS Specificity Calculator

基於瀏覽器的免費工具。輸入您的值並在此裝置上取得結果。

Separate selectors with commas. Up to 30 selectors and 2,000 characters. Example: .card h2, #app .notice:hover

This calculator covers common selector syntax; it is not a full CSS parser or cascade simulator. It does not evaluate cascade layers, importance, inline styles or stylesheet order. CSS nesting selectors are not supported.

Specificity results

該工具如何運作?

Enter up to 30 CSS selectors separated by commas. The tool counts IDs, classes, attributes, pseudo-classes and elements, and handles :where(), :is(), :not(), :has() and nth-child of-selector lists.

常見問題

該工具如何運作?

Enter up to 30 CSS selectors separated by commas. The tool counts IDs, classes, attributes, pseudo-classes and elements, and handles :where(), :is(), :not(), :has() and nth-child of-selector lists.

我的輸入已上傳嗎?

否。處理在此瀏覽器中運行。此工具不會上傳或儲存您的輸入。

Is CSS Specificity Calculator free to use?

是的。它在您的瀏覽器中是免費的,不需要帳戶。設備記憶體和瀏覽器支援仍然適用。

這個結果有多準確?

This calculator covers common selector syntax; it is not a full CSS parser or cascade simulator. It does not evaluate cascade layers, importance, inline styles or stylesheet order. CSS nesting selectors are not supported.