HTML5视频控件

编程入门 行业动态 更新时间:2024-10-24 22:25:56
本文介绍了HTML5视频控件 - 变得更大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我知道你可以自定义视频控件来制作你自己的按钮/布局,但有什么方法可以让默认控件更大?

I know you can customize the video controls to make your own buttons/layout, but is there any way I can just make the default controls larger?

推荐答案

不是采用跨浏览器方式,而是使用 Shadow DOM 元素。至少在Chrome中,您可以在开发工具设置中启用Show Shadow DOM,检查视频播放器控件,并收集您需要提供的CSS以影响这些元素(在webkit浏览器中)。

Not in a cross-browser way, but the controls are built with Shadow DOM elements. In Chrome, at least, you can enable Show Shadow DOM in the dev tools settings, inspect the video player controls, and glean the CSS that you'd need to supply to affect these elements (in webkit browsers).

很抱歉,不确定其他浏览器支持哪些内容来检查和设置Shadow DOM的内容。

Sorry, not sure offhand what the support is in other browsers for inspecting and styling Shadow DOM stuff.

更多推荐

HTML5视频控件

本文发布于:2023-10-23 00:13:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519163.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   视频

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!