我们是否应该考虑屏幕和打印之外的 CSS 媒体?
我们是否应该考虑屏幕和打印之外的 CSS 媒体? http://www.w3.org/TR/CSS2/media。 html#media-types
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).
对于其他媒体项目有任何实际好处吗?或所有其他(屏幕和打印除外)
使用其他媒体类型有什么好处?
Should we think about CSS media other than screen and print? http://www.w3.org/TR/CSS2/media.html#media-types
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).
is there any practical benefit for other media items? or all others ( other than Screen and Print")
what are benefits to use other media types?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
好吧,如果您支持辅助设备,语音和盲文很快就会变得非常有用。大多数网站不支持这些;例如,制作一个可以在 lynx 中良好显示的替代纯文本网站可能会更好。
Well, if you support accessibility devices, speech and braille can be very useful very quickly. The majority of sites don't support these; you'd perhaps be better served by making an alternative text-only site that could display well in lynx, for example.
对于普通的 Web 开发人员来说,屏幕和打印可能是唯一需要担心的。
甚至 iPhone 也忽略了手持媒体类型:
来源: 针对 iPhone 上的 Safari 进行优化
大多数其他媒体类型都针对残疾用户。这些用户的计算机通常会配备某种辅助技术(例如屏幕阅读器或放大镜),并且很难知道他们可能正在使用哪些技术以及他们是否也支持备用样式表。除非您专门针对这些用户(并且知道他们正在使用什么类型的技术),否则最好坚持使用事实上的标准。
For the average web developer, screen and print are probably the only ones to worry about.
Even the iPhone ignores the handheld media type:
Source: Optimizing for Safari on iPhone
Most of the other media types target users with disabilities. Those users typically will have some kind of assistive technology for their computers (like a screen reader or magnifier), and it's really hard to know which ones they might be using and if they would also support the alternate stylesheets. Unless you're targeting these users specifically (and know what kinds of technologies they are using), it's probably better to stick with the de-facto standards.
这取决于您的目标受众。
一般来说,
screen
和print
就足够了。It depends on the audience you are targeting.
In general
screen
andprint
are sufficient.使用 CSS3 媒体查询和“手持式”的移动设备:)
我喜欢能够为移动用户提供可行的替代方案的想法;智能手机用户(与屏幕尺寸相关的媒体查询过滤这些)通常值得关注。
随着不同表示之间的差异,对信息结构和内容设计的关注变得更加重要。
我想知道“打印”在多大程度上确实是个好主意:我们应该鼓励人们打印网络内容吗?我可以在某些情况下看到这一点的有效性,但不能作为一般规则。
Mobile devices using CSS3 media queries and "handheld" :)
I like the idea of being able to provide a viable alternative to mobile users; smartphone users (media queries related to screen size filter these) deserve attention as a rule.
Focus on information structure and content design become more important with the difference between the different representations.
I wonder to what extent "print" really is a good idea: should we encourage people to print content from the web? I can see the validity of this in a few cases, but not as a general rule.
如果您正在尝试构建一个高度可访问的网站,那么为了支持未来的设备,实现不常用的媒体类型可能是值得的。
不过,如果支持演示媒体,那就太酷了。
tv
应该受到 Boxee 或 PS3 等设备的支持,但我听说过的唯一支持它的设备是 Wii。99%的情况,不要浪费时间。
If you are trying to build a highly accessible web site, it might be worth it to implement media types that aren't commonly used in order to potentially support future devices.
Presentation media would be pretty cool if it was supported, though.
tv
is supposed to be supported by devices like Boxee or the PS3, but the only one I've ever heard of supporting it is the Wii.For 99% of the cases, don't waste your time.