翻译正在进行中。

概述

media specifies the intended destination medium for style information.

语法

medium = stylesheet.media 
stylesheet.media =medium

参数

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

示例

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

注意

The default value for media is "screen."

Specification

DOM Level 2 Styles - STYLESHEET

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, wth
最后编辑者: mdnwebdocs-bot,