mozilla

Revision 400707 of StyleSheet.media

  • Revision slug: Web/API/StyleSheet/media
  • Revision title: media
  • Revision id: 400707
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment robot Adding: [[pl:DOM:stylesheet.media]]DOM/StyleSheet/media Web/API/StyleSheet/media
Tags: 

Revision Content

{{ DomRef() }}

Summary

media specifies the intended destination medium for style information.

Syntax

medium = stylesheet.media 
stylesheet.media = medium

Parameters

  • medium is a string describing a single medium or a comma-separated list.

Example

<link rel="StyleSheet" href="document.css" type="text/css" media="screen" />

Notes

The default value for media is "screen."

Specification

DOM Level 2 Styles - STYLESHEET

{{ languages( { "pl": "pl/DOM/stylesheet.media" } ) }}

Revision Source

<p>
{{ DomRef() }}
</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p><b>media</b> specifies the intended destination medium for style information. </p>
<h3 id="Syntax" name="Syntax">Syntax </h3>
<pre class="eval"><i>medium</i> = stylesheet.media 
stylesheet.media = <i>medium</i>
</pre>
<h3 id="Parameters" name="Parameters">Parameters </h3>
<ul><li><code>medium</code> is a string describing a single medium or a comma-separated list.
</li></ul>
<h3 id="Example" name="Example">Example </h3>
<pre>&lt;link rel="StyleSheet" href="document.css" type="text/css" media="screen" /&gt;
</pre>
<h3 id="Notes" name="Notes">Notes </h3>
<p>The default value for media is "screen." </p>
<h3 id="Specification" name="Specification">Specification </h3>
<p>DOM Level 2 Styles - STYLESHEET
</p>
<div class="noinclude">
</div>
{{ languages( { "pl": "pl/DOM/stylesheet.media" } ) }}
Revert to this revision