是否有可能风格HTML5音频标签? [英] Is it possible to style html5 audio tag?

查看:161
本文介绍了是否有可能风格HTML5音频标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还没有找到如何做到这一点的任何资源......甚至改变播放器的颜色将是不错:)

I haven't found any resources on how to do that...even changing the color of the player would be nice:)

推荐答案

是的!随着控件属性HTML5音频标记使用浏览器的默认播放器。您可以通过不使用浏览器控件,但滚动自己的控件并通过JavaScript谈话的音频API定制,以自己的喜好。

Yes! The HTML5 audio tag with the "controls" attribute uses the browser's default player. You can customize it to your liking by not using the browser controls, but rolling your own controls and talking to the audio API via javascript.

幸运的是,其他人已经这样做了。我最喜欢的球员,现在是 jPlayer ,这是非常风格化的伟大工程。检查出来。

Luckily, other people have already done this. My favorite player right now is jPlayer, it is very stylable and works great. Check it out.

这篇关于是否有可能风格HTML5音频标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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