gpt4 book ai didi

css - 不使用 Flash 的全屏视频背景

转载 作者:太空宇宙 更新时间:2023-11-04 00:24:44 24 4
gpt4 key购买 nike

有什么方法可以不使用Flash 为网页设置全屏视频背景吗?

我正在考虑 html5,但我不能将 Internet Explorer 排除在外。

有什么想法吗?

非常感谢

最佳答案

如果不使用 Internet Explorer 安装额外的附加组件或对象,这是不可能的。 HTML5 允许在您的网站中嵌入视频,但并非所有浏览器都提供全屏支持。也许是使用 Google's Chrome Frame一个想法。

看看 HTML5 specification :

User agents may allow users to view the video content in manners more suitable to the user (e.g. full-screen or in an independent resizable window). As for the other user interface features, controls to enable this should not interfere with the page's normal rendering unless the user agent is exposing a user interface. In such an independent context, however, user agents may make full user interfaces visible, with, e.g., play, pause, seeking, and volume controls, even if the controls attribute is absent.

也可以embed Microsoft 的 Windows Media Player,但不在后台...这是一个工作示例:http://www.html5-fullscreen-video.com/

关于css - 不使用 Flash 的全屏视频背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7322527/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com