aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/stylesheet/media/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/stylesheet/media/index.html')
-rw-r--r--files/zh-cn/web/api/stylesheet/media/index.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/stylesheet/media/index.html b/files/zh-cn/web/api/stylesheet/media/index.html
new file mode 100644
index 0000000000..c82286e57c
--- /dev/null
+++ b/files/zh-cn/web/api/stylesheet/media/index.html
@@ -0,0 +1,35 @@
+---
+title: StyleSheet.media
+slug: Web/API/StyleSheet/media
+translation_of: Web/API/StyleSheet/media
+---
+<div>{{APIRef("CSSOM")}}</div>
+
+<h2 id="Summary" name="Summary">概述</h2>
+
+<p><strong>media</strong> specifies the intended destination medium for style information.</p>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="eval"><em>medium</em> = stylesheet.media
+stylesheet.media =<em>medium</em>
+</pre>
+
+<h2 id="Parameters" name="Parameters">参数</h2>
+
+<ul>
+ <li><code>medium</code> is a string describing a single medium or a comma-separated list.</li>
+</ul>
+
+<h2 id="Example" name="Example">示例</h2>
+
+<pre>&lt;link rel="StyleSheet" href="document.css" type="text/css" media="screen" /&gt;
+</pre>
+
+<h2 id="Notes" name="Notes">注意</h2>
+
+<p>The default value for media is "screen."</p>
+
+<h2 id="Specification" name="Specification">Specification</h2>
+
+<p>DOM Level 2 Styles - STYLESHEET</p>