“预测”有多可靠? CSS 中的媒体类型?
我正在开展一个公司项目,创建一个将使用多年的系统。 我最近在 css 中遇到了“投影”媒体类型,我想象它可能为用户带来的潜在好处,进行演示等,但我不知道这是否只是我的想象,或者是否存在这是一个现实世界的优势。到目前为止,我所知道的是某些版本的 Opera 在全屏模式下使用媒体类型。
W3C 媒体类型条目:http://www.w3.org/TR/CSS2/media。 html
在投影仪上使用时,是否有浏览器检测投影媒体类型?
这可能吗?我有预感,对于浏览器来说,投影仪只是一个屏幕,所以没有检测到。如果我错了那就太好了。
有人在投影媒体类型方面取得过成功吗?
I'm working on a corporate project, creating a system that will be used for years.
I've recently come across the "projection" media type in css, and I'm imagining potential benefits it could have for the users, giving presentations, etc, but I don't know if that's just in my imagination, or if there is a real world advantage here. So far all I'm aware of is that some versions of Opera use the media type in fullscreen mode.
W3C media type entries: http://www.w3.org/TR/CSS2/media.html
Does any browser detect the projection media type when being used on a projector?
Is that even possible? I have a hunch that, as far as a browser is concerned, a projector is just a screen, so there's no detection. It would be great if I was wrong.
Has anybody had any success with the projection media type?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我的研究显示,投影媒体类型目前仅由 Opera 在全屏模式下使用。
将我的计算机连接到投影仪并在显示设置中将显示模式设置为“投影仪”似乎对任何浏览器选择的样式表都没有影响。
代码风格有一个很好的不同浏览器及其与不同 CSS 媒体模式的兼容性的摘要。
As far as my research has shown, the projection media type is only currently used by Opera in fullscreen mode.
Hooking my computer up to a projector and setting the display mode to "projector" in my display settings seems to have no effect on the stylesheet chosen by any browser.
Code Style has a good summary of different browsers and their compatibility with the different CSS Media Modes.
我一直使用投影模式,但不幸的是只有 Opera 12 及更早版本实现了它。你按 F11 启动它,然后 CSS 投影媒体启动。
我将每张幻灯片放在一个 div 中,然后使用 CSS:
I use projection mode all the time, but unfortunately only Opera 12 and earlier implement it. You hit F11 to start it, and then the CSS projection media kicks in.
I put each slide in a div, and then use the CSS: