| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 762 人关注过本帖
标题:Recognized media types
只看楼主 加入收藏
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
结帖率:66.67%
收藏
 问题点数:0 回复次数:2 
Recognized media types
Recognized media types

The names chosen for CSS media types reflect target devices for which the relevant properties make sense. In the following list of CSS media types the names of media types are normative, but the descriptions are informative. Likewise, the "Media" field in the description of each property is informative.
all
Suitable for all devices.
braille
Intended for braille tactile feedback devices.
embossed
Intended for paged braille printers.
handheld
Intended for handheld devices (typically small screen, limited bandwidth).
print
Intended for paged material and for documents viewed on screen in print preview mode. Please consult the section on paged media for information about formatting issues that are specific to paged media.
projection
Intended for projected presentations, for example projectors. Please consult the section on paged media for information about formatting issues that are specific to paged media.
screen
Intended primarily for color computer screens.
speech
Intended for speech synthesizers. Note: CSS2 had a similar media type called 'aural' for this purpose. See the appendix on aural style sheets for details.
tty
Intended for media using a fixed-pitch character grid (such as teletypes, terminals, or portable devices with limited display capabilities). Authors should not use pixel units with the "tty" media type.
tv
Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available).

Media type names are case-insensitive.

Media types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document. However, user agents may use different media types on different canvases. For example, a document may (simultaneously) be shown in 'screen' mode on one canvas and 'print' mode on another canvas.

Note that a multimodal media type is still only one media type. The 'tv' media type, for example, is a multimodal media type that renders both visually and aurally to a single canvas.

Unknown media type names must not result in the @media rule being ignored.

Note. Future updates of CSS may extend the list of media types. Authors should not rely on media type names that are not yet defined by a CSS specification.


[此贴子已经被作者于2007-1-24 16:35:05编辑过]

搜索更多相关主题的帖子: types Recognized media 
2007-01-24 16:33
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 


辨别 media 类型

该类型名影响css所指向的设备,使相关的css属性有意义。

all
适合所有设备

braille
指示盲人触摸相应设备

embossed
指示页面式盲人字印打印机

handheld
指示把柄设备(通常小屏幕,有限带宽)

print
指示页面式源材料和预览文档模式. 要考虑打印排版的版面问题

projection
指示投影影像,要考虑投影排版的版面问题

screen
指示首选的彩色电脑显示器

speech
指示语音合成器, 提示: css2有一个类似的类型名叫aural与本类型相同,见aural附录

tty
指示使用等宽(fixed-pitch)字体字符格的设备(例如打字机,终端,或者有限显示容量的手提设备)
不过使用者在tty类型下不能使用px(像素)作为单位

tv
指示电视设备(低品质,色彩,有限滚动屏幕,声音可用)


media类型名是大小写不敏感的


。。。。。。。(下面的懒得翻译)


网页最常用的估计是 all screen print 三种media类型了

2007-01-24 16:54
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
最近在写CSS解析器,真是麻烦啊~~ 这个是刚找的,原来css还可以动态对设备选择样式。

翻译是我翻的,错了请提出。
2007-01-24 16:56
快速回复:Recognized media types
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039022 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved