aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/stylesheet/media/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/zh-cn/web/api/stylesheet/media/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
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>