Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CSSStyleSheet.deleteRule()

概述

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

语法

stylesheet.deleteRule(index) 

参数

  • index是一个数字,用来指定样式规则的位置.

示例

 myStyles.deleteRule(0);

相关链接

规范

deleteRule

文档标签和贡献者

 此页面的贡献者: teoli, khalid32, ziyunfei
 最后编辑者: teoli,