35

I think you can accomplish this by changing the css for the #document fragments, these are DOM1 specs and supported by all browsers, but about the styling, I'm not sure.

我认为您可以通过更改#document fragment的css来实现这一点,这些是DOM1规范并得到所有浏览器的支持,但是关于样式,我不确定。

Simple webkit browser (chrome on windows) specific solution

The following solution is webkit specific

以下解决方案是特定于webkit的

video::-webkit-media-controls-fullscreen-button {

display: none;

}

video::-webkit-media-controls-play-button {}

video::-webkit-media-controls-timeline {}

video::-webkit-media-controls-current-time-display{}

video::-webkit-media-controls-time-remaining-display {}

video::-webkit-media-controls-mute-button {}

video::-webkit-media-controls-toggle-closed-captions-button {}

video::-webkit-media-controls-volume-slider {}

这是小提琴。

Warning:

警告:

This will not work on browsers who have a rendering engine other than webkit e.g. Firefox or Internet Explorer, or obsolete versions of Opera that had Blink/Presto.

这将不适用于除了webkit之外有渲染引擎的浏览器,如Firefox或Internet Explorer,或有Blink/Presto的过时Opera版本。

This may not work with implementations of webkit browsers in Operating systems other than windows e.g. Safari on macOS.

这可能与在windows之外操作系统的webkit浏览器的实现不兼容,比如macOS上的Safari浏览器。

Update:

更新:

After getting frustrated over pointing multiple inattentive readers to the first comment on this post, who complained that the aforementioned solution doesn't work for blah-blah browser, I'm updating the answer.

当我为在这篇文章的第一个评论中指出许多粗心的读者而感到沮丧时,他们抱怨说前面提到的解决方案对blah-blah浏览器不起作用,于是我更新了答案。

Taking care of Vendor specific implementations:

The above solution is -webkit- browser specific and was tested in Chrome on Windows.

上面的解决方案是-webkit-特定于浏览器的,并在Windows上的Chrome中进行了测试。

The implementation of shadow DOM hasn't been standardized, and therefore, may vary from one browser vendor to another.

影子DOM的实现还没有标准化,因此,在不同的浏览器供应商之间可能存在差异。

Almost all browsers today have great developer tools, but some features are intentionally locked, but can be opened with a little effort, for instance, in Firefox most such configurations can be accessed in the about:config page.

现在几乎所有的浏览器都有很好的开发工具,但是有些特性是被故意锁住的,但是只要稍加努力就可以打开,例如,在Firefox中,大多数这样的配置都可以在about:config页面中访问。

Developers are advised to unlock the shadow DOM features in their browser.

建议开发人员在浏览器中打开阴影DOM特性。

Then, they can inspect the component

然后,他们可以检查

组件

How to enable shadow DOM selection in Chrome

Go to Chrome > Developer Tools > Settings (gear icon)

转到Chrome >开发工具>设置(齿轮图标)

Under Elements look for Show user agent shadow DOM option

在元素下面寻找Show user agent影子DOM选项

Check (select) the box

检查(选择)

You'll be able to inspect the underlying shadow DOM

您将能够检查底层的影子DOM

Observe their respective styling

观察各自的样式

You will notice that they're similar to pseudo class selectors

您将注意到它们类似于伪类选择器

Some unsolicited free advise for Hiding the full screen button of the video tag in HTML5

Finding the solution can be as easy as writing CSS with pseudo class selectors

找到解决方案就像用伪类选择器编写CSS一样简单

But like every other CSS, it might require a lot of trial-n-error

但是和其他CSS一样,它可能需要大量的试错

And you might undergo a lot of frustration to make it work

你可能要经历很多挫折才能让它发挥作用

But always remember, it's worth it.

但要记住,这是值得的。

Additionally, as @paulitto suggests, DOM methods can be implemented after removing controls attribute from element. Refer this tutorial for more.

此外,正如@paulitto所建议的,可以在从

元素中删除控件属性后实现DOM方法。更多信息请参考本教程。

html5 video 隐藏全屏按钮,如何隐藏HTML5视频标签的全屏按钮?相关推荐

  1. 班迪录屏文件只有声音没有视频-班迪录屏无视频-解决方法

    说一下大概思路就行, 可能和笔记本的显卡有关系,需要设置一下班迪录屏的文件格式就行.如图所示: 在录像-视频-设置,出现文件类型,选择-AVI,就可以了,他的音频文件模式就变成了mp3, 然后录制的视 ...

  2. html选择本地文件视频并播放器,使HTML5视频播放器播放不同的文件(Make a HTML5 video player play a different file)...

    使HTML5视频播放器播放不同的文件(Make a HTML5 video player play a different file) 在播放视频时,我无法让HTML5播放器播放不同的视频,我尝试更改 ...

  3. 使用jQuery和CSS自定义HTML5 Video 控件

    http://www.cnblogs.com/lucker/archive/2013/03/01/2939163.html Html5 Video是现在html5最流行的功能之一,得到了大多数最新版本 ...

  4. android webview 下载视频播放 206,Android webview+Html5 video

    1.网页代码,就一个video 控件: HTML5视频播放器: http://218.206.204.71/app/public/media/BHSJ.mp4 body { margin: 0; pa ...

  5. android webview video标签,Android WebView支持html5 video标签

    看到这个标题很兴奋了吧,但是内容肯定会让你失望...这先告诉结果了,我没在2.3上搞出什么名堂来. 起因是项目需要在android 2.3.*的版本上调用有video标签的页面,调研是否支持.百度,g ...

  6. html5 video speed control插件,HTML5 Video Speed Control 1.34

    HTML5 Video Speed Control 1.34插件图文教程 HTML5 Video Speed Control is a free Productivity Extension publ ...

  7. html5 video播放调研,全屏,伪全屏

    web duper code{web} :|: life{me} :|: tencent&xiaomi{work} 来源:http://materliu.github.io/all/web/m ...

  8. Html5原生video标签禁止全屏播放的实现

    制作移动端H5,需要添加视频,点击播放的时候会自动全屏播放,记录一下处理局部播放的问题. <video id="pageVideo"x5-playsinline=" ...

  9. html5 video全屏api,H5+ app使用多媒体(video、webview)API视频展示以及全屏

    在H5+ 实现混合app的页面中实现视频的展示,进度条以及全屏的实现,设置窗体自定义的导航栏.以及返回返回键业务场景:点击按钮出现一个视频播放的窗口,该窗口可以根据手机的横竖屏来调整视频的显示,以及具 ...

最新文章

  1. gdb coredump
  2. Fedora 23如何安装LAMP服务器
  3. Python入门100题 | 第078题
  4. velocity模板引擎 -- java.io.FileNotFoundException: velocity.log (Permission denied)
  5. Java JUC之Atomic系列12大类实例讲解和原理分解
  6. go get国内解决办法汇总
  7. java 集合(Set接口)
  8. java ojdbc 还需要装 oracle client 吗,ojdbc连接数据库
  9. 项目管理知识体系指南_PMP考前冲刺丨项目管理知识体系指南(PMBOK)串讲(4)...
  10. 点击button标签会导致提交form
  11. 【05】JSON笔记
  12. 图谱实战 | 谈元鹏:电力领域知识图谱技术进展与应用实践
  13. ABBYY FineReader Engine OCR 软件开发工具包深度解析
  14. 双机热备软件 Pacemaker和Keepalived
  15. docker-镜像加速
  16. 简单工厂(静态工厂)
  17. TCP拥塞控制算法BBR源码分析
  18. FBTFT driver St7789v LCD 移植简介
  19. 硝基苯并-2-氧杂-1,3二唑(Nitrobenz-2-oxa-1,3-diazole,NBD)修饰BODIPY荧光探针检测GSH
  20. 使用Flink对hudi MOR表进行离线压缩

热门文章

  1. SMR磁盘学习3---caveat-scriptor
  2. 答网友在企业工作中实际SEHLL问题
  3. 饥荒联机下地洞服务器没有响应,《饥荒联机版》TGP版开启洞穴方法 游戏小伙伴赶紧收藏!...
  4. MYSQL学习笔记-(白夜黑羽)
  5. Java对Excel的读写详解(POI)
  6. CodeM 第三题 世界杯
  7. 6.9 用Python操控数据库(批量删除,百度新闻数据爬取与存储,写入数据时进行去重处理,pandas读取sql数据)
  8. GDOI#345. 送礼物「JSOI 2015」01分数规划+RMQ
  9. haproxy中的Proxies段的配置
  10. IDEA 2021.1 的 Win 和 Mac 快捷键大全!