• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Technologie Internetowe dla developerów
  2. Lista Web API
  3. Stylesheet
  4. stylesheet.deleteRule
  • Change language
  • View in English

stylesheet.deleteRule

Podsumowanie

Metoda deleteRule usuwa regułę stylu bieżącego obiektu arkusza stylów.

Składnia

stylesheet.deleteRule(index)

Parametry

  • index jest długą liczbą reprezentującą pozycję reguły.

Przykład

 myStyles.deleteRule(0);

Specyfikacja

deleteRule

Last modified: Apr 14, 2021, by MDN contributors

Change your language

Related Topics

  1. CSSStyleSheet
  2. Własności
    1. cssRules
    2. ownerRule
    3. This is an obsolete API and is no longer guaranteed to work. rules
  3. Metody
    1. This is an obsolete API and is no longer guaranteed to work. addRule()
    2. deleteRule()
    3. insertRule()
    4. This is an obsolete API and is no longer guaranteed to work. removeRule()
  4. Inheritance:
    1. StyleSheet
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies