aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/cssstylesheet/deleterule/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/cssstylesheet/deleterule/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/cssstylesheet/deleterule/index.html')
-rw-r--r--files/ja/web/api/cssstylesheet/deleterule/index.html124
1 files changed, 124 insertions, 0 deletions
diff --git a/files/ja/web/api/cssstylesheet/deleterule/index.html b/files/ja/web/api/cssstylesheet/deleterule/index.html
new file mode 100644
index 0000000000..9754516cf3
--- /dev/null
+++ b/files/ja/web/api/cssstylesheet/deleterule/index.html
@@ -0,0 +1,124 @@
+---
+title: CSSStyleSheet.deleteRule()
+slug: Web/API/CSSStyleSheet/deleteRule
+tags:
+ - API
+ - CSSOM
+ - CSSStyleSheet
+ - Method
+ - Reference
+translation_of: Web/API/CSSStyleSheet/deleteRule
+---
+<p>{{APIRef("CSSOM")}}</p>
+
+<p><code><strong>CSSStyleSheet.deleteRule()</strong></code> メソッドは、スタイル規則を現在のスタイルシートオブジェクトから削除します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">stylesheet.deleteRule(<em>index</em>)
+</pre>
+
+<h3 id="Parameters" name="Parameters">引数</h3>
+
+<ul>
+ <li><code>index</code> は、規則の位置を表す倍精度整数値。</li>
+</ul>
+
+<h3 id="戻り値">戻り値</h3>
+
+<p><em>無効。</em></p>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js"> myStyles.deleteRule(0);
+</pre>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th>仕様書</th>
+ <th>策定状況</th>
+ <th>備考</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSSOM", "#dom-cssstylesheet-deleterule", 'CSSStyleSheet.deleteRule()')}}</td>
+ <td>{{Spec2("CSSOM")}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName("DOM2 Style", "css.html#CSS-CSSStyleSheet-deleteRule", "CSSStyleSheet.deleteRule()")}}</td>
+ <td>{{Spec2("DOM2 Style")}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの実装状況</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari (WebKit)</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>9.0</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h3 id="従来のブラウザーのサポート">従来のブラウザーのサポート</h3>
+
+<ul>
+ <li>
+ <h4 id="Internet_Explorer_-_pre_v9"><strong>Internet Explorer - pre v9</strong></h4>
+ <strong>removeRule</strong>([<em>index</em>]); -- 例:<code> removeRule(); // 最初の規則を削除</code><br>
+ <br>
+ {{domxref("CSSStyleSheet.insertRule","insertRule()")}} と {{domxref("CSSStyleSheet",".cssRules")}} の代わりとなる非標準の <code><a class="external" href="http://www.quirksmode.org/dom/w3c_css.html#change">addRule()</a></code> と <code><a class="external" href="http://www.quirksmode.org/dom/w3c_css.html#access">.rules</a></code> にも注意してください。</li>
+</ul>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{domxref("CSSStyleSheet.insertRule")}}</li>
+ <li><a class="external" href="http://www-archive.mozilla.org/docs/web-developer/css1technote/css1tojs.html#priority">Cross-Browser CSS-rules ordering (CSS1)</a></li>
+ <li><a class="external" href="http://www.quirksmode.org/dom/w3c_css.html">Quirksmode - CSS</a></li>
+</ul>