Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

!important / @namespace

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 17 προβολές
  • Τελευταία απάντηση από deanone

more options

Is it still necessary to use both !important and @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul) inside userChrome?

Is it still necessary to use both ''!important'' and ''@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul)'' inside userChrome?

Επιλεγμένη λύση

I've been on a warpath against using @namespace for nearly four years. Ref. https://www.userchrome.org/adding-style-recipes-userchrome-css.html#namespaces

You need !important in many cases to overcome the sometimes unpredictable way that browsers apply the precedence rules of the CSS cascade: https://developer.mozilla.org/docs/Web/CSS/Cascade

Ανάγνωση απάντησης σε πλαίσιο 👍 0

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

I've been on a warpath against using @namespace for nearly four years. Ref. https://www.userchrome.org/adding-style-recipes-userchrome-css.html#namespaces

You need !important in many cases to overcome the sometimes unpredictable way that browsers apply the precedence rules of the CSS cascade: https://developer.mozilla.org/docs/Web/CSS/Cascade

more options

Thanks for that. I have been suspicious of @namespace for some time. I will omit it for the time being.