如何更改 video.js (5.0.0-rc52) 中的按钮顺序? [英] How to change button order in video.js (5.0.0-rc52)?

查看:35
本文介绍了如何更改 video.js (5.0.0-rc52) 中的按钮顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改我正在创建的 video.js 皮肤中的显示顺序.我得到了所有 CSS/LESS 的东西(我认为),但是我遇到了一个我不想通过 CSS 解决的问题.

I'm trying to change the display order in a video.js skin I'm creating. I get all the CSS/LESS stuff (I think), but I got one problem which I'd like to not solve via CSS.

我希望总持续时间显示在屏幕的最右侧.可悲的是,音量按钮之前已呈现,因此我不能为此使用 float:right;.

I want the total duration to appear at the very right of the screen. Sadly, the volume button is rendered before, so I can't use float:right; for this.

是否有我遗漏的 API 函数或其他更改按钮顺序的方法?

Is there some API function I missed or some other way to change the order of the buttons?

谢谢

推荐答案

好的,以防万一有人像我一样卡住了.我找到了解决方案.:-)

Okay, just in case someone gets stuck like I did. I found the solution. :-)

https://github.com/videojs/video.js/issues/1070

这篇关于如何更改 video.js (5.0.0-rc52) 中的按钮顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆