什么是 HTML 4 媒体说明符

发布于 2024-11-03 12:30:00 字数 45 浏览 0 评论 0原文

有人可以向我解释一下什么是 HTML 4 媒体说明符吗?有文档解释这一点吗?

Can some one explain to me what HTML 4 media specifiers are? Is there docs that explain this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

淡墨 2024-11-10 12:30:01

好吧,你的意思是
媒体描述

MediaDesc 类型的属性值是媒体描述符 - a
链接资源所在的以逗号分隔的媒体列表
量身定制。媒体描述符区分大小写

以下媒体描述符在 HTML 4 中定义:


来自 http://htmlhelp.com/reference/html40/values.html

首先我以为您在询问内容类型,例如 text/html、image/jpeg、audio/mpeg、video/quicktime、text/css 和 text/javascript。

请参阅http://www.iana.org/assignments/media-types/index。 html

OK, you mean
MediaDesc

Attribute values of type MediaDesc are media descriptors — a
comma-separated list of media for which the linked resource is
tailored. Media descriptors are case-sensitive.

The following media descriptors are defined in HTML 4:

  • screen, for non-paged computer screens;
  • tty, for fixed-pitch character grid displays (such as the display used by Lynx);
  • tv, for television-type devices with low resolution and limited scrollability;
  • projection, for projectors;
  • handheld, for handheld devices (characterized by a small display and limited bandwidth);
  • print, for output to a printer;
  • braille, for braille tactile feedback devices;
  • aural, for speech synthesizers;
  • all, for all devices.

from http://htmlhelp.com/reference/html40/values.html

At first I thought you were asking about CONTENT types, like text/html, image/jpeg, audio/mpeg, video/quicktime, text/css, and text/javascript.

See http://www.iana.org/assignments/media-types/index.html

指尖上的星空 2024-11-10 12:30:01

它们告诉您可以在什么类型的屏幕等上查看内容。例如,有 print 介质,您可以在其中定义打印内容的外观(以便您可以删除多余的颜色等)。

我希望这有帮助。

They tell what type of screen etc. the content is viewable on. For example there is the print media where you can define what the printed content looks like (so you can remove excess colors etc.).

I hope this helps.

樱桃奶球 2024-11-10 12:30:01

我不熟悉你所说的上下文,但也许有人用它来引用 CSS 媒体类型(或在一个教程中进行了解释)?

每个评论的更新答案

媒体查询在规范 和 https://developer.mozilla.org/En/CSS/Media_queries

但是关键是这些在 HTML4 中并不全部可用,因此请参阅上面的媒体类型列表。

I'm not familiar with the context you're speaking of, but maybe someone is using it to refer to CSS media types (or explained in one tutorial)?

UPDATED ANSWER PER COMMENT:

Media queries are explained in the specification and at https://developer.mozilla.org/En/CSS/Media_queries

But the point is that these were not all available in HTML4, so see the list of media types above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文