A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/CSSStyleSheet/deleteRule below:

CSSStyleSheet.deleteRule() - Web API | MDN

MDN Web Docs
  1. 面向开发者的 Web 技术
  2. Web API
  3. CSSStyleSheet
  4. CSSStyleSheet.deleteRule()

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

Filter sidebar

  1. CSS 对象模型(CSSOM)
  2. CSSStyleSheet
  3. 构造函数
    1. CSSStyleSheet()
  4. 实例属性
    1. cssRules
    2. ownerRule
    3. rules 已弃用
  5. 实例方法
    1. addRule() 已弃用
    2. deleteRule()
    3. insertRule()
    4. removeRule() 已弃用
    5. replace()
    6. replaceSync()
  6. 继承
    1. StyleSheet
  7. CSSOM 的相关页面
    1. CSS
    2. CSSConditionRule
    3. CSSFontFeatureValuesRule
    4. CSSFontPaletteValuesRule
    5. CSSGroupingRule
    6. CSSImportRule
    7. CSSKeyframeRule
    8. CSSKeyframesRule
    9. CSSLayerBlockRule
    10. CSSLayerStatementRule
    11. CSSMediaRule
    12. CSSNamespaceRule
    13. CSSPageDescriptors
    14. CSSPageRule
    15. CSSPropertyRule
    16. CSSRule
    17. CSSRuleList
    18. CSSStartingStyleRule
    19. CSSStyleDeclaration
    20. CSSStyleRule
    21. CSSSupportsRule
    22. CaretPosition
    23. MediaList
    24. MediaQueryList
    25. Screen
    26. StyleSheet
    27. StyleSheetList
  8. 指南
    1. CSS 声明
    2. CSS 声明块
    3. 确定元素的尺寸
    4. 管理屏幕方向
    5. 关于使用动态样式的信息
CSSStyleSheet.deleteRule()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

概述

deleteRule方法用来从当前样式表对象中删除指定的样式规则。

语法
stylesheet.deleteRule(index)
参数 示例
 myStyles.deleteRule(0);
参见 规范

deleteRule

Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2024年12月13日 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4