aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/api/cssrule/csstext/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:15 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:15 -0500
commit4b1a9203c547c019fc5398082ae19a3f3d4c3efe (patch)
treed4a40e13ceeb9f85479605110a76e7a4d5f3b56b /files/de/web/api/cssrule/csstext/index.html
parent33058f2b292b3a581333bdfb21b8f671898c5060 (diff)
downloadtranslated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.gz
translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.bz2
translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.zip
initial commit
Diffstat (limited to 'files/de/web/api/cssrule/csstext/index.html')
-rw-r--r--files/de/web/api/cssrule/csstext/index.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/de/web/api/cssrule/csstext/index.html b/files/de/web/api/cssrule/csstext/index.html
new file mode 100644
index 0000000000..789cd7519a
--- /dev/null
+++ b/files/de/web/api/cssrule/csstext/index.html
@@ -0,0 +1,31 @@
+---
+title: CSSRule.cssText
+slug: Web/API/CSSRule/cssText
+tags:
+ - API
+ - CSSOM
+ - Eigenschaft
+ - Referenz
+translation_of: Web/API/CSSRule/cssText
+---
+<div>
+ {{ APIRef() }}</div>
+<h2 id="Summary" name="Summary">Übersicht</h2>
+<p><strong>cssText</strong> gibt den eigentlichen Text der Styleregel zurück. Um eine Stylesheet Regel dynamisch setzen zu können, siehe <a href="/de/docs/Web/API/CSS_Object_Model/Dynamische_Stylinginformationen_verwenden" title="DOM/Using_dynamic_styling_information">Dynamische Stylinginformationen verwenden.</a></p>
+<h2 id="Syntax" name="Syntax">Syntax</h2>
+<pre class="syntaxbox"><em>string</em> = cssRule.cssText
+</pre>
+<h2 id="Example" name="Example">Beispiel</h2>
+<pre class="brush:html;">&lt;style&gt;
+body { background-color: darkblue; }
+&lt;/style&gt;
+&lt;script&gt;
+ var stylesheet = document.styleSheets[0];
+ alert(stylesheet.cssRules[0].cssText); // body { background-color: darkblue; }
+&lt;/script&gt;
+
+</pre>
+<h2 id="Specification" name="Specification">Spezifikation</h2>
+<ul>
+ <li><a href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule">DOM Level 2 Style CSS - Interface CSSStyleRule (introduced in DOM Level 2)</a></li>
+</ul>